The QXmppCodec class is the base class for audio codecs capable of encoding and decoding audio samples. More...
#include <QXmppCodec.h>
Inherited by QXmppG711aCodec, and QXmppG711uCodec.
Public Member Functions | |
virtual | ~QXmppCodec () |
Destroys an audio codec. | |
virtual qint64 | encode (QDataStream &input, QDataStream &output)=0 |
virtual qint64 | decode (QDataStream &input, QDataStream &output)=0 |
The QXmppCodec class is the base class for audio codecs capable of encoding and decoding audio samples.
Samples must be 16-bit little endian.
|
pure virtual |
Reads encoded data from the input stream, decodes it and writes the decoded samples to the output stream.
|
pure virtual |
Reads samples from the input stream, encodes them and writes the encoded data to the output stream.