Photon C++ Client API  5.0.7.3
Public Member Functions | List of all members
IEncoderDirect< B > Class Template Referenceabstract

Interface for an encoder which consumes input data via explicit call. More...

Inheritance diagram for IEncoderDirect< B >:
Inheritance graph
[legend]
Collaboration diagram for IEncoderDirect< B >:
Collaboration graph
[legend]

Public Member Functions

virtual void input (const B &buf)=0
 Consumes the given raw data. More...
 
- Public Member Functions inherited from IEncoder
virtual Common::JString getError (void) const =0
 If not null, the object is in invalid state. More...
 
virtual void setOutput (void *opaque, void(*output)(void *, const Buffer< nByte > &))=0
 Set callback encoder calls on each encoded data frame (if such output supported). More...
 
virtual Buffer< nByte > dequeueOutput ()=0
 Returns next encoded data frame (if such output supported). More...
 

Detailed Description

template<typename B>
class ExitGames::Voice::IEncoderDirect< B >

Interface for an encoder which consumes input data via explicit call.

Member Function Documentation

◆ input()

virtual void input ( const B &  buf)
pure virtual

Consumes the given raw data.

Parameters
bufArray containing raw data (e.g. audio samples).

Implemented in Encoder< T >.