Photon Voice v2.53

Public Member Functions | Properties | List of all members
RawCodec.Decoder< T > Class Template Reference

Inherits IDecoder.

Public Member Functions

 Decoder (Action< FrameOut< T >> output)
 
void Open (VoiceInfo info)
 Open (initialize) the decoder. More...
 
void Input (ref FrameBuffer byteBuf)
 Consumes the given encoded data. More...
 
void Dispose ()
 

Properties

string Error [get]
 
- Properties inherited from IDecoder
string Error [get]
 If not null, the object is in invalid state. More...
 

Member Function Documentation

◆ Input()

void Input ( ref FrameBuffer  buf)

Consumes the given encoded data.

The callee can call buf.Retain() to prevent the caller from disposing the buffer. In this case, the callee should call buf.Release() when buffer is no longer needed.

Implements IDecoder.

◆ Open()

void Open ( VoiceInfo  info)

Open (initialize) the decoder.

Parameters
infoProperties of the data stream to decode.

Implements IDecoder.