#include <mixer.h>
Public Member Functions | |
| Mixer (bool use_sound) | |
| create a Mixer, use_sound = false will create a stub instead | |
| bool | audioAvailable () |
| returns true if the mixer is available | |
| const Music * | currentSong () const |
| get the song currently playing | |
| int | setActiveChannels (int) |
| set number of channels shall get processed | |
| void | setMusic (const std::string &s) |
| set current song | |
| void | setMusic (const Music &) |
| set current song | |
| void | startMusic () |
| begin background music | |
| void | stopMusic () |
| halt background music | |
| void | pauseMusic () |
| pause music at current playback stop | |
| void | resumeMusic () |
| resume playback if paused | |
| void | rewindMusic () |
| continue playback from beginning of song | |
| void | playSample (const std::string &s) |
play sample where res is a named sample Resource | |
| void | playSample (const Sample &) |
play sample where res is a named sample Resource | |
| int | setVolume (int) |
| set volume to play samples at | |
| int | setMusicVolume (int) |
| set volume to play music at | |
| int | getMusicVolume () const |
| get current music volume | |
| void | enableHook (bool) |
| Enable visualization / filtering hook. | |
Static Public Member Functions | |
| static Mixer * | instance () |
| access the Mixer instance | |
| static bool | isInit () |
| check whether sound is initialized, without calling instance() and initializing it | |
Public Attributes | |
| SigC::Signal2< void, Uint8 *, int > | data |
| Signal data. | |
|
|
Enable visualization / filtering hook. (data) |
|
|
Signal data. When the visualization hook is enabled, this signals is emitted whenever new data is to be send to the sounddevice.
|
This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.