Photon Voice v2.53

Public Member Functions | List of all members
IDataReader< T > Interface Template Reference

Interface for pulling data, in case this is more appropriate than pushing it. More...

Inherits IDisposable.

Inherited by IAudioReader< T >.

Public Member Functions

bool Read (T[] buffer)
 Fill full given frame buffer with source uncompressed data or return false if not enough such data. More...
 

Detailed Description

Interface for pulling data, in case this is more appropriate than pushing it.

Member Function Documentation

◆ Read()

bool Read ( T[]  buffer)

Fill full given frame buffer with source uncompressed data or return false if not enough such data.

Parameters
bufferBuffer to fill.
Returns
True if buffer was filled successfully, false otherwise.

Implemented in AudioInReader< T >, and AudioUtil.GeneratorReader< T >.