aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2010-07-18 11:33:40 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2010-07-18 11:33:40 +0000
commitd410cf9b263816d6951f9393476216710354f51d (patch)
tree05468f78f481e2e760255a79210db053053bd880 /source
parentbc608214ed38789670bff940abc50083317e73d9 (diff)
downloadqxmpp-d410cf9b263816d6951f9393476216710354f51d.tar.gz
improve code documentation for QXmppCodec
Diffstat (limited to 'source')
-rw-r--r--source/QXmppCodec.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/source/QXmppCodec.h b/source/QXmppCodec.h
index ddd88ca7..0cb7fb32 100644
--- a/source/QXmppCodec.h
+++ b/source/QXmppCodec.h
@@ -26,16 +26,25 @@
#include <QtGlobal>
-/// The QXmppCodec class is the base class for audio codecs capable of
-/// encoding / decoding 16-bit mono samples.
+/// \brief The QXmppCodec class is the base class for audio codecs capable of
+/// encoding and decoding audio samples.
+///
+/// Samples must be 16-bit little endian.
class QXmppCodec
{
public:
+ /// Reads samples from the input stream, encodes them and writes the
+ /// encoded data to the output stream.
virtual qint64 encode(QDataStream &input, QDataStream &output) = 0;
+
+ /// Reads encoded data from the input stream, decodes it and writes the
+ /// decoded samples to the output stream.
virtual qint64 decode(QDataStream &input, QDataStream &output) = 0;
};
+/// \internal
+///
/// The QXmppG711aCodec class represent a G.711 a-law PCM codec.
class QXmppG711aCodec : public QXmppCodec
@@ -50,6 +59,8 @@ private:
int m_frequency;
};
+/// \internal
+///
/// The QXmppG711uCodec class represent a G.711 u-law PCM codec.
class QXmppG711uCodec : public QXmppCodec
@@ -67,6 +78,8 @@ private:
#ifdef QXMPP_USE_SPEEX
typedef struct SpeexBits SpeexBits;
+/// \internal
+///
/// The QXmppSpeexCodec class represent a SPEEX codec.
class QXmppSpeexCodec : public QXmppCodec