OpenMW
|
#include <mpgsnd_decoder.hpp>
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_Decoder & | operator= (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 |
MWSound::MpgSnd_Decoder::MpgSnd_Decoder | ( | const MpgSnd_Decoder & | rhs | ) | [private] |
MWSound::MpgSnd_Decoder::MpgSnd_Decoder | ( | ) | [private] |
virtual MWSound::MpgSnd_Decoder::~MpgSnd_Decoder | ( | ) | [virtual] |
virtual void MWSound::MpgSnd_Decoder::close | ( | ) | [private, virtual] |
Implements MWSound::Sound_Decoder.
virtual void MWSound::MpgSnd_Decoder::getInfo | ( | int * | samplerate, |
ChannelConfig * | chans, | ||
SampleType * | type | ||
) | [private, virtual] |
Implements MWSound::Sound_Decoder.
virtual std::string MWSound::MpgSnd_Decoder::getName | ( | ) | [private, virtual] |
Implements MWSound::Sound_Decoder.
virtual size_t MWSound::MpgSnd_Decoder::getSampleOffset | ( | ) | [private, virtual] |
Implements MWSound::Sound_Decoder.
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] |
Implements MWSound::Sound_Decoder.
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] |
Implements MWSound::Sound_Decoder.
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] |
Implements MWSound::Sound_Decoder.
friend class SoundManager [friend] |
Ogre::DataStreamPtr MWSound::MpgSnd_Decoder::mDataStream [private] |
mpg123_handle* MWSound::MpgSnd_Decoder::mMpgFile [private] |
int MWSound::MpgSnd_Decoder::mSampleRate [private] |
SNDFILE* MWSound::MpgSnd_Decoder::mSndFile [private] |
SF_INFO MWSound::MpgSnd_Decoder::mSndInfo [private] |