Photon Voice v2.53

Public Member Functions | List of all members
DecoderConfigFrame Class Reference

Stores the config frame and prevents other frames decoding until the decoder is ready. More...

Inherits IDisposable.

Public Member Functions

 DecoderConfigFrame (ILogger logger, IDecoder decoder)
 
bool TryConfigure (ref FrameBuffer buf, bool decoderReady)
 Call it in Input(). More...
 
void Dispose ()
 

Detailed Description

Stores the config frame and prevents other frames decoding until the decoder is ready.

Member Function Documentation

◆ TryConfigure()

bool TryConfigure ( ref FrameBuffer  buf,
bool  decoderReady 
)

Call it in Input().

Parameters
bufData frame.
decoderReadyTrue if the decoder is ready.
Returns
True if decoder is allowed to decode the current frame.