Back to index

supertuxkart  0.5+dfsg1
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
MusicOggStream Class Reference

#include <music_ogg.hpp>

Inheritance diagram for MusicOggStream:
Inheritance graph
Collaboration diagram for MusicOggStream:
Collaboration graph

List of all members.

Public Member Functions

 MusicOggStream ()
virtual ~MusicOggStream ()
virtual void update ()
virtual void updateFading (float percent)
virtual void updateFaster (float percent, float max_pitch)
virtual bool load (const std::string &filename)
virtual bool playMusic ()
virtual bool stopMusic ()
virtual bool pauseMusic ()
virtual bool resumeMusic ()

Protected Member Functions

bool empty ()
bool check ()
string errorString (int code)

Private Member Functions

bool release ()
bool isPlaying ()
bool streamIntoBuffer (ALuint buffer)

Private Attributes

string m_fileName
FILE * m_oggFile
OggVorbis_File m_oggStream
vorbis_info * m_vorbisInfo
bool m_error
ALuint m_soundBuffers [2]
ALuint m_soundSource
ALenum nb_channels
bool m_pausedMusic

Detailed Description

Definition at line 36 of file music_ogg.hpp.

Constructor & Destructor Documentation

virtual MusicOggStream::~MusicOggStream ( ) [virtual]

Member Function Documentation

bool MusicOggStream::check ( ) [protected]
bool MusicOggStream::empty ( ) [protected]
string MusicOggStream::errorString ( int  code) [protected]
bool MusicOggStream::isPlaying ( ) [private]
virtual bool MusicOggStream::load ( const std::string &  filename) [virtual]

Implements Music.

virtual bool MusicOggStream::pauseMusic ( ) [virtual]

Implements Music.

virtual bool MusicOggStream::playMusic ( ) [virtual]

Implements Music.

bool MusicOggStream::release ( ) [private]
virtual bool MusicOggStream::resumeMusic ( ) [virtual]

Implements Music.

virtual bool MusicOggStream::stopMusic ( ) [virtual]

Implements Music.

bool MusicOggStream::streamIntoBuffer ( ALuint  buffer) [private]
virtual void MusicOggStream::update ( ) [virtual]

Implements Music.

virtual void MusicOggStream::updateFading ( float  percent) [virtual]

Implements Music.

virtual void MusicOggStream::updateFaster ( float  percent,
float  max_pitch 
) [virtual]

Implements Music.

Member Data Documentation

bool MusicOggStream::m_error [private]

Definition at line 68 of file music_ogg.hpp.

string MusicOggStream::m_fileName [private]

Definition at line 64 of file music_ogg.hpp.

FILE* MusicOggStream::m_oggFile [private]

Definition at line 65 of file music_ogg.hpp.

OggVorbis_File MusicOggStream::m_oggStream [private]

Definition at line 66 of file music_ogg.hpp.

Definition at line 74 of file music_ogg.hpp.

ALuint MusicOggStream::m_soundBuffers[2] [private]

Definition at line 70 of file music_ogg.hpp.

Definition at line 71 of file music_ogg.hpp.

vorbis_info* MusicOggStream::m_vorbisInfo [private]

Definition at line 67 of file music_ogg.hpp.

ALenum MusicOggStream::nb_channels [private]

Definition at line 72 of file music_ogg.hpp.

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