class for de-compressing audio received from network
More...
#include <audiodecoder.h>
|
void | frameReceived (quint32 aCallId, quint32 aSeqNo, const QByteArray &aAudioData, Hash aOriginatingNode) |
|
|
void | frameDecoded (quint32 aCallId, quint32 aSeqNo, const QByteArray &aEncodedData, Hash aOriginatingNode) |
|
class for de-compressing audio received from network
This class encapsulates opus decoder for packing audio over network.
◆ AudioDecoder()
AudioDecoder::AudioDecoder |
( |
quint32 |
aSampleRate = 8000 , |
|
|
quint32 |
aNumChannels = 1 |
|
) |
| |
◆ ~AudioDecoder()
AudioDecoder::~AudioDecoder |
( |
| ) |
|
◆ frameDecoded
void AudioDecoder::frameDecoded |
( |
quint32 |
aCallId, |
|
|
quint32 |
aSeqNo, |
|
|
const QByteArray & |
aEncodedData, |
|
|
Hash |
aOriginatingNode |
|
) |
| |
|
signal |
This signal is emitted when decoded frame is ready for further processing, typically by audio mixer.
- Parameters
-
aCallId | call where frame originates from |
aSeqNo | sequence number of the frame in the call |
aEncodedData | raw de-coded audio data. In practice the byte-array holds array of floats, each preseting one sample, in range [-1,1]. |
◆ frameReceived
void AudioDecoder::frameReceived |
( |
quint32 |
aCallId, |
|
|
quint32 |
aSeqNo, |
|
|
const QByteArray & |
aAudioData, |
|
|
Hash |
aOriginatingNode |
|
) |
| |
|
slot |
Received audio frames to be de-coded are connected to this slot.
◆ iDecodedData
QByteArray AudioDecoder::iDecodedData |
|
private |
◆ iDecoder
OpusDecoder* AudioDecoder::iDecoder |
|
private |
◆ iNumChannels
const quint32 AudioDecoder::iNumChannels |
|
private |
◆ iSampleRate
const quint32 AudioDecoder::iSampleRate |
|
private |
The documentation for this class was generated from the following file: