Photon Voice v2.53

Public Member Functions | Properties | List of all members
IDecoder Interface Reference

Generic decoder interface. More...

Inherits IDisposable.

Inherited by IDecoderDirect< B >, OpusCodec.Decoder< T >, and RawCodec.Decoder< T >.

Public Member Functions

void Open (VoiceInfo info)
 Open (initialize) the decoder. More...
 
void Input (ref FrameBuffer buf)
 Consumes the given encoded data. More...
 

Properties

string Error [get]
 If not null, the object is in invalid state. More...
 

Detailed Description

Generic decoder interface.

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.

Implemented in RawCodec.Decoder< T >, and OpusCodec.Decoder< T >.

◆ Open()

void Open ( VoiceInfo  info)

Open (initialize) the decoder.

Parameters
infoProperties of the data stream to decode.

Implemented in RawCodec.Decoder< T >, and OpusCodec.Decoder< T >.

Property Documentation

◆ Error

string Error
get

If not null, the object is in invalid state.