21 #ifndef AUDIO_ENCODER_H 22 #define AUDIO_ENCODER_H 25 #include <opus/opus.h> 26 #include "../util/hash.h" 43 quint32 aNumChannels = 1 ) ;
62 const QByteArray& aEncodedData,
78 const QByteArray& aAudioData,
AudioEncoder(quint32 aSampleRate=8000, quint32 aNumChannels=1)
void frameEncoded(quint32 aCallId, quint32 aSeqNo, const QByteArray &aEncodedData, Hash aForNode)
class for compressing audio to be sent over network
Definition: audioencoder.h:35
Hash is class that carries 160-bit digest.
Definition: hash.h:38
OpusEncoder * iEncoder
Definition: audioencoder.h:81
void frameReady(quint32 aCallId, quint32 aSeqNo, const QByteArray &aAudioData, Hash aForNode)
unsigned char * iEncodedData
Definition: audioencoder.h:82
const quint32 iNumChannels
Definition: audioencoder.h:83