Back to index

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

#include <sound_plib.hpp>

Inheritance diagram for MusicPlib:
Inheritance graph
[legend]
Collaboration diagram for MusicPlib:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 MusicPlib ()
virtual ~MusicPlib ()
virtual void update ()
virtual bool load (const std::string &filename)
virtual bool playMusic ()
virtual bool stopMusic ()
virtual bool pauseMusic ()
virtual bool resumeMusic ()
virtual void updateFading (float percent)=0
virtual void updateFaster (float percent, float pitch)=0

Private Attributes

std::string m_filename

Detailed Description

Definition at line 42 of file sound_plib.hpp.


Constructor & Destructor Documentation

MusicPlib::MusicPlib ( ) [inline]

Definition at line 45 of file sound_plib.hpp.

{}
virtual MusicPlib::~MusicPlib ( ) [inline, virtual]

Definition at line 46 of file sound_plib.hpp.

{}

Member Function Documentation

bool MusicPlib::load ( const std::string &  filename) [virtual]

Implements Music.

Definition at line 58 of file sound_plib.cpp.

{
    m_filename= loader->getPath(filename);
    return true;
}
bool MusicPlib::pauseMusic ( ) [virtual]

Implements Music.

Definition at line 80 of file sound_plib.cpp.

{
    plib_scheduler->stopMusic();
    return true;
}
bool MusicPlib::playMusic ( ) [virtual]

Implements Music.

Definition at line 65 of file sound_plib.cpp.

{
    plib_scheduler->stopMusic();
    plib_scheduler->loopMusic(m_filename.c_str());
    return true;
}
bool MusicPlib::resumeMusic ( ) [virtual]

Implements Music.

Definition at line 87 of file sound_plib.cpp.

{
    plib_scheduler->loopMusic(m_filename.c_str());
    return true;
}
bool MusicPlib::stopMusic ( ) [virtual]

Implements Music.

Definition at line 73 of file sound_plib.cpp.

{
    plib_scheduler->stopMusic();
    return true;
}
void MusicPlib::update ( ) [virtual]

Implements Music.

Definition at line 50 of file sound_plib.cpp.

{
    // Comment this next line out if the sound causes big glitches
    // on your IRIX machine!
    plib_scheduler->update();
}
virtual void Music::updateFading ( float  percent) [pure virtual, inherited]

Implemented in MusicOggStream.

Here is the caller graph for this function:

virtual void Music::updateFaster ( float  percent,
float  pitch 
) [pure virtual, inherited]

Implemented in MusicOggStream.

Here is the caller graph for this function:


Member Data Documentation

std::string MusicPlib::m_filename [private]

Definition at line 58 of file sound_plib.hpp.


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