![]() |
Photon Voice
v2.7
|
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
BufferReaderPushAdapterBase | ( | IDataReader< T > | reader | ) |
Create a new BufferReaderPushAdapterBase instance
- Parameters
-
reader DataReader to read from.
Member Function Documentation
void Dispose | ( | ) |
Release resources associated with this instance.
|
pure virtual |
Do the actual data read/push.
- Parameters
-
localVoice LocalVoice instance to push data to.
Implements IServiceable.
Implemented in BufferReaderPushAdapterAsyncPoolFloatToShort, BufferReaderPushAdapterAsyncPoolCopy< T >, BufferReaderPushAdapterAsyncPool< T >, and BufferReaderPushAdapter< T >.