|
|
// ########################################################################## // #### #### // #### RTP Audio Server Project #### // #### ============================ #### // #### #### // #### Audio Debug #### // #### #### // #### Version 1.00 -- February 04, 2001 #### // #### #### // #### Copyright (C) 1999 Thomas Dreibholz #### // #### 2000 Universität Bonn, Abt. IV #### // #### 2001 EMail: Dreibholz@bigfoot.com #### // #### WWW: http://www.bigfoot.com/~dreibholz #### // #### #### // ########################################################################## #ifndef AUDIODEBUG_H #define AUDIODEBUG_H #include "system.h" #include "audiowriterinterface.h" namespace Coral { /** * This class implements AudioWriterInterface for the audio debugger. * * @short Audio Debug * @author Thomas Dreibholz (Dreibholz@bigfoot.com) * @version 1.0 */ class AudioDebug : virtual public AudioWriterInterface { // ====== Constructor/Destructor ========================================= public: /** * Constructor. */ AudioDebug(); /** * Destructor. */ ~AudioDebug(); // ====== AudioQualityInterface implementation =========================== /** * getSamplingRate() Implementation of AudioQualityInterface. * * @see AudioQualityInterface#getSamplingRate */ card16 getSamplingRate() const; /** * getBits() Implementation of AudioQualityInterface. * * @see AudioQualityInterface#getBits */ card8 getBits() const; /** * getChannels() Implementation of AudioQualityInterface. * * @see AudioQualityInterface#getChannels */ card8 getChannels() const; /** * getByteOrder() Implementation of AudioQualityInterface. * * @see AudioQualityInterface#getByteOrder */ card16 getByteOrder() const; /** * getBytesPerSecond() Implementation of AudioQualityInterface. * * @see AudioQualityInterface#getBytesPerSecond */ cardinal getBytesPerSecond() const; /** * getBitsPerSample() Implementation of AudioQualityInterface. * * @see AudioQualityInterface#getBitsPerSample */ cardinal getBitsPerSample() const; /** * setSamplingRate() Implementation of AdjustableAudioQualityInterface. * * @see AdjustableAudioQualityInterface#setSamplingRate */ card16 setSamplingRate(const card16 samplingRate); /** * setBits() Implementation of AdjustableAudioQualityInterface. * * @see AdjustableAudioQualityInterface#setBits */ card8 setBits(const card8 bits); /** * setChannels() Implementation of AdjustableAudioQualityInterface. * * @see AdjustableAudioQualityInterface#setChannels */ card8 setChannels(const card8 channels); /** * setByteOrder() Implementation of AdjustableAudioQualityInterface. * * @see AdjustableAudioQualityInterface#setByteOrder */ card16 setByteOrder(const card16 byteOrder); // ====== AudioInterface implementation ================================== /** * ready() implementation of AudioWriterInterface * * @see AudioWriterInterface#ready */ bool ready() const; /** * sync() implementation of AudioWriterInterface * * @see AudioWriterInterface#sync */ void sync(); /** * write() implementation of AudioWriterInterface * * @see AudioWriterInterface#write */ bool write(const void* data, const size_t length); // ====== Internal data ================================================== private: card64 LastWriteTimeStamp; card64 LastPrintTimeStamp; cardinal BytesWritten; integer Balance; card16 AudioSamplingRate; card8 AudioChannels; card8 AudioBits; card16 AudioByteOrder; }; } #endif
Generated by: viper@odin on Sun Feb 4 18:54:51 2001, using kdoc 2.0a22. |