RTP Audio System  2.0.0
WavAudioReader Class Reference

WAV Audio Reader. More...

#include <wavaudioreader.h>

Inheritance diagram for WavAudioReader:
AudioReaderInterface AudioQuality AudioQualityInterface AdjustableAudioQualityInterface AudioQualityInterface

List of all members.

Classes

struct  RIFF_Chunk
struct  RIFF_Header
struct  WAVE_Format

Public Member Functions

 WavAudioReader (const char *name=NULL)
 ~WavAudioReader ()
bool openMedia (const char *name)
void closeMedia ()
bool ready () const
void getMediaInfo (MediaInfo &mediaInfo) const
MediaError getErrorCode () const
card64 getPosition () const
card64 getMaxPosition () const
void setPosition (const card64 position)
cardinal getNextBlock (void *buffer, const cardinal blockSize)

Private Member Functions

bool getChunk (RIFF_Chunk &chunk)

Private Attributes

MediaError Error
FILE * InputFD
WAVE_Format Format
card64 StartPosition
card64 EndPosition
card64 Position
card64 MaxPosition

Detailed Description

WAV Audio Reader.

This class is a reader for WAV audio files.

Author:
Thomas Dreibholz
Version:
1.0

Constructor & Destructor Documentation

WavAudioReader::WavAudioReader ( const char *  name = NULL)

Constructor.

Parameters:
nameName of WAV file or NULL.

Member Function Documentation

bool WavAudioReader::getChunk ( RIFF_Chunk chunk) [private]
void WavAudioReader::getMediaInfo ( MediaInfo mediaInfo) const [virtual]
cardinal WavAudioReader::getNextBlock ( void *  buffer,
const cardinal  blockSize 
) [virtual]
bool WavAudioReader::openMedia ( const char *  name) [virtual]
bool WavAudioReader::ready ( ) const [virtual]
void WavAudioReader::setPosition ( const card64  position) [virtual]

Member Data Documentation

FILE* WavAudioReader::InputFD [private]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines