SoundFile Class Reference

#include <sound_file.hpp>

Inherited by OggSoundFile, and WavSoundFile.

List of all members.

Public Member Functions

 SoundFile ()
virtual ~SoundFile ()
virtual size_t read (void *buffer, size_t buffer_size)=0
virtual void reset ()=0

Public Attributes

int channels
int rate
int bits_per_sample
size_t size
 size in bytes


Detailed Description

Definition at line 22 of file sound_file.hpp.


Constructor & Destructor Documentation

SoundFile::SoundFile (  )  [inline]

Definition at line 25 of file sound_file.hpp.

00025               :
00026     channels(),
00027     rate(),
00028     bits_per_sample(),
00029     size()
00030   {}

virtual SoundFile::~SoundFile (  )  [inline, virtual]

Definition at line 32 of file sound_file.hpp.

00033   { }


Member Function Documentation

virtual size_t SoundFile::read ( void *  buffer,
size_t  buffer_size 
) [pure virtual]

Implemented in OggSoundFile, and WavSoundFile.

Referenced by StreamSoundSource::fillBufferAndQueue(), and SoundManager::load_file_into_buffer().

virtual void SoundFile::reset (  )  [pure virtual]

Implemented in OggSoundFile, and WavSoundFile.

Referenced by StreamSoundSource::fillBufferAndQueue().


Member Data Documentation

int SoundFile::channels

Definition at line 38 of file sound_file.hpp.

Referenced by SoundManager::get_sample_format(), OggSoundFile::OggSoundFile(), and WavSoundFile::WavSoundFile().

int SoundFile::rate

Definition at line 39 of file sound_file.hpp.

Referenced by StreamSoundSource::fillBufferAndQueue(), SoundManager::load_file_into_buffer(), OggSoundFile::OggSoundFile(), and WavSoundFile::WavSoundFile().

int SoundFile::bits_per_sample

Definition at line 40 of file sound_file.hpp.

Referenced by SoundManager::get_sample_format(), OggSoundFile::OggSoundFile(), WavSoundFile::read(), and WavSoundFile::WavSoundFile().

size_t SoundFile::size

size in bytes

Definition at line 42 of file sound_file.hpp.

Referenced by SoundManager::load_file_into_buffer(), OggSoundFile::OggSoundFile(), WavSoundFile::read(), and WavSoundFile::WavSoundFile().


The documentation for this class was generated from the following file:
Generated on Mon Jun 9 03:38:36 2014 for SuperTux by  doxygen 1.5.1