Photon Voice v2.53

Public Member Functions | Protected Attributes | List of all members
BufferReaderPushAdapterBase< T > Class Template Referenceabstract

Adapter base reading data from IDataReader<T>.Read and pushing it to LocalVoice. More...

Inherits IServiceable.

Inherited by BufferReaderPushAdapterAsyncPool< T >.

Public Member Functions

abstract void Service (LocalVoice localVoice)
 Do the actual data read/push. More...
 
 BufferReaderPushAdapterBase (IDataReader< T > reader)
 Create a new BufferReaderPushAdapterBase instance More...
 
void Dispose ()
 Release resources associated with this instance. More...
 

Protected Attributes

IDataReader< T > reader
 

Detailed Description

Adapter base reading data from IDataReader<T>.Read and pushing it to LocalVoice.

Use this with a LocalVoice of same T type.

Constructor & Destructor Documentation

◆ BufferReaderPushAdapterBase()

Create a new BufferReaderPushAdapterBase instance

Parameters
readerDataReader to read from.

Member Function Documentation

◆ Dispose()

void Dispose ( )

Release resources associated with this instance.

◆ Service()

abstract void Service ( LocalVoice  localVoice)
pure virtual

Do the actual data read/push.

Parameters
localVoiceLocalVoice instance to push data to.

Implements IServiceable.

Implemented in BufferReaderPushAdapterAsyncPoolShortToFloat, BufferReaderPushAdapterAsyncPoolFloatToShort, and BufferReaderPushAdapterAsyncPool< T >.