class for de-compressing audio received from network
More...
#include <audiodecoder.h>
|
void | frameReceived (quint32 aCallId, quint32 aSeqNo, const QByteArray &aAudioData) |
|
|
void | frameDecoded (quint32 aCallId, quint32 aSeqNo, const QByteArray &aEncodedData) |
|
class for de-compressing audio received from network
This class encapsulates opus decoder for packing audio over network.
AudioDecoder::AudioDecoder |
( |
quint32 |
aSampleRate = 8000 , |
|
|
quint32 |
aNumChannels = 1 |
|
) |
| |
AudioDecoder::~AudioDecoder |
( |
| ) |
|
void AudioDecoder::frameDecoded |
( |
quint32 |
aCallId, |
|
|
quint32 |
aSeqNo, |
|
|
const QByteArray & |
aEncodedData |
|
) |
| |
|
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]. |
void AudioDecoder::frameReceived |
( |
quint32 |
aCallId, |
|
|
quint32 |
aSeqNo, |
|
|
const QByteArray & |
aAudioData |
|
) |
| |
|
slot |
Received audio frames to be de-coded are connected to this slot.
QByteArray AudioDecoder::iDecodedData |
|
private |
OpusDecoder* AudioDecoder::iDecoder |
|
private |
const quint32 AudioDecoder::iNumChannels |
|
private |
const quint32 AudioDecoder::iSampleRate |
|
private |
The documentation for this class was generated from the following file: