TwguiSound Class Reference

#include <twgui_audiere.h>

Inheritance diagram for TwguiSound:

SoundBase List of all members.

Public Member Functions

virtual void init ()
virtual TwguiMusicBasecreate_music ()
virtual TwguiSampleBasecreate_sample ()

Static Public Member Functions

static audiere::OutputStreamPtr load_sample (const char *filename)
static audiere::OutputStreamPtr load_music (const char *filename)

Static Public Attributes

static audiere::AudioDevicePtr device

Detailed Description

the sound manager: for samples (wav), and for music (mod). This is using the Audiere sound library, and is able to play mods, wavs, mp3s, anything - pretty cool. Note that you can find some mods on e.g. modarchive.com


Member Function Documentation

TwguiMusicBase * TwguiSound::create_music  )  [virtual]
 

create an audiere-specific class for playing a piece of music

Implements SoundBase.

TwguiSampleBase * TwguiSound::create_sample  )  [virtual]
 

create an audiere-specific class for playing a sound effect sample

Implements SoundBase.

void TwguiSound::init  )  [virtual]
 

allocates the (audiere) sound device

Implements SoundBase.

audiere::OutputStreamPtr TwguiSound::load_music const char *  filename  )  [static]
 

loads streamed music (music stays on disk)

audiere::OutputStreamPtr TwguiSound::load_sample const char *  filename  )  [static]
 

loads a sample into memory


Member Data Documentation

audiere::AudioDevicePtr TwguiSound::device [static]
 

the audiere device pointer. This is static, because there is only one device


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