Photon Voice v2.53

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

Inherits IDecoder.

Public Member Functions

 Decoder (Action< FrameOut< T >> output, ILogger logger)
 
void Open (VoiceInfo i)
 Open (initialize) the decoder. More...
 
void Dispose ()
 
void Input (ref FrameBuffer buf)
 Consumes the given encoded data. More...
 

Protected Attributes

OpusDecoder< T > decoder
 

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.