TwguiMusic Class Reference

#include <twgui_audiere.h>

Inheritance diagram for TwguiMusic:

TwguiMusicBase List of all members.

Public Member Functions

virtual void load (const char *filename)
virtual void play ()
virtual void destroy ()
virtual void pause ()
virtual void resume ()
virtual void set_volume ()

Public Attributes

int position
audiere::OutputStreamPtr music

Detailed Description

this loads looped music, using the audiere sound-lib.


Member Function Documentation

void TwguiMusic::destroy  )  [virtual]
 

you need this to explicitly destroy looped, enless music when it's no longer needed

Implements TwguiMusicBase.

void TwguiMusic::load const char *  filename  )  [virtual]
 

This loads a sample, using the global TwguiSound pointer (see below)

Implements TwguiMusicBase.

void TwguiMusic::pause  )  [virtual]
 

pause music

Implements TwguiMusicBase.

void TwguiMusic::play  )  [virtual]
 

Sounds that are played, have their volume scaled by distance and reference distance.

Implements TwguiMusicBase.

void TwguiMusic::resume  )  [virtual]
 

resume music

Implements TwguiMusicBase.

void TwguiMusic::set_volume  )  [virtual]
 

applies the SoundSystem volumes to a piece of music

Implements TwguiMusicBase.


Member Data Documentation

audiere::OutputStreamPtr TwguiMusic::music
 

reference to a piece of music

int TwguiMusic::position
 

position in the stream


The documentation for this class was generated from the following files:
Generated on Tue Feb 14 13:48:45 2006 for Twgui by  doxygen 1.4.6-NO