OpenMW
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Friends
MWSound::MpgSnd_Decoder Class Reference

#include <mpgsnd_decoder.hpp>

List of all members.

Public Member Functions

virtual ~MpgSnd_Decoder ()

Private Member Functions

virtual void open (const std::string &fname)
virtual void close ()
virtual std::string getName ()
virtual void getInfo (int *samplerate, ChannelConfig *chans, SampleType *type)
virtual size_t read (char *buffer, size_t bytes)
virtual void readAll (std::vector< char > &output)
virtual void rewind ()
virtual size_t getSampleOffset ()
MpgSnd_Decoderoperator= (const MpgSnd_Decoder &rhs)
 MpgSnd_Decoder (const MpgSnd_Decoder &rhs)
 MpgSnd_Decoder ()

Static Private Member Functions

static sf_count_t ogresf_get_filelen (void *user_data)
static sf_count_t ogresf_seek (sf_count_t offset, int whence, void *user_data)
static sf_count_t ogresf_read (void *ptr, sf_count_t count, void *user_data)
static sf_count_t ogresf_write (const void *, sf_count_t, void *)
static sf_count_t ogresf_tell (void *user_data)
static ssize_t ogrempg_read (void *, void *, size_t)
static off_t ogrempg_lseek (void *, off_t, int)

Private Attributes

SF_INFO mSndInfo
SNDFILE * mSndFile
mpg123_handle * mMpgFile
Ogre::DataStreamPtr mDataStream
ChannelConfig mChanConfig
int mSampleRate

Friends

class SoundManager

Constructor & Destructor Documentation


Member Function Documentation

virtual void MWSound::MpgSnd_Decoder::close ( ) [private, virtual]
virtual void MWSound::MpgSnd_Decoder::getInfo ( int *  samplerate,
ChannelConfig chans,
SampleType type 
) [private, virtual]
virtual std::string MWSound::MpgSnd_Decoder::getName ( ) [private, virtual]
virtual size_t MWSound::MpgSnd_Decoder::getSampleOffset ( ) [private, virtual]
static off_t MWSound::MpgSnd_Decoder::ogrempg_lseek ( void *  ,
off_t  ,
int   
) [static, private]
static ssize_t MWSound::MpgSnd_Decoder::ogrempg_read ( void *  ,
void *  ,
size_t   
) [static, private]
static sf_count_t MWSound::MpgSnd_Decoder::ogresf_get_filelen ( void *  user_data) [static, private]
static sf_count_t MWSound::MpgSnd_Decoder::ogresf_read ( void *  ptr,
sf_count_t  count,
void *  user_data 
) [static, private]
static sf_count_t MWSound::MpgSnd_Decoder::ogresf_seek ( sf_count_t  offset,
int  whence,
void *  user_data 
) [static, private]
static sf_count_t MWSound::MpgSnd_Decoder::ogresf_tell ( void *  user_data) [static, private]
static sf_count_t MWSound::MpgSnd_Decoder::ogresf_write ( const void *  ,
sf_count_t  ,
void *   
) [static, private]
virtual void MWSound::MpgSnd_Decoder::open ( const std::string &  fname) [private, virtual]
MpgSnd_Decoder& MWSound::MpgSnd_Decoder::operator= ( const MpgSnd_Decoder rhs) [private]
virtual size_t MWSound::MpgSnd_Decoder::read ( char *  buffer,
size_t  bytes 
) [private, virtual]
virtual void MWSound::MpgSnd_Decoder::readAll ( std::vector< char > &  output) [private, virtual]

Reimplemented from MWSound::Sound_Decoder.

virtual void MWSound::MpgSnd_Decoder::rewind ( ) [private, virtual]

Friends And Related Function Documentation

friend class SoundManager [friend]

Member Data Documentation

Ogre::DataStreamPtr MWSound::MpgSnd_Decoder::mDataStream [private]
mpg123_handle* MWSound::MpgSnd_Decoder::mMpgFile [private]

The documentation for this class was generated from the following file: