Photon Voice  v2.8
English | 日本語 | 한국
Public Member Functions | Protected Attributes | List of all members
BufferReaderPushAdapterBase< T > Class Template Referenceabstract

Adapter base class to move data by reading from IDataReader.Read and pushing to LocalVoice. More...

Inherits IServiceable.

Inherited by BufferReaderPushAdapter< T >, BufferReaderPushAdapterAsyncPool< T >, and BufferReaderPushAdapterAsyncPoolCopy< 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 class to move data by reading from IDataReader.Read and pushing to LocalVoice.

Use this with a LocalVoice of same T type.

Constructor & Destructor Documentation

Create a new BufferReaderPushAdapterBase instance

Parameters
readerDataReader to read from.

Member Function Documentation

void Dispose ( )

Release resources associated with this instance.

abstract void Service ( LocalVoice  localVoice)
pure virtual

Do the actual data read/push.

Parameters
localVoiceLocalVoice instance to push data to.

Implements IServiceable.

Implemented in BufferReaderPushAdapterAsyncPoolFloatToShort, BufferReaderPushAdapterAsyncPoolCopy< T >, BufferReaderPushAdapterAsyncPool< T >, and BufferReaderPushAdapter< T >.