Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | Related Pages

wftk::Mixer Class Reference

Wrapper class around the audio mixer. More...

#include <mixer.h>

List of all members.

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 MusiccurrentSong () 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

Mixerinstance ()
 access the Mixer instance
bool isInit ()
 check whether sound is initialized, without calling instance() and initializing it

Public Attributes

SigC::Signal2< void, Uint8 *,
int > 
data
 Signal data.


Detailed Description

Wrapper class around the audio mixer.


Member Function Documentation

void wftk::Mixer::enableHook bool   ) 
 

Enable visualization / filtering hook.

(data)


Member Data Documentation

SigC::Signal2<void, Uint8*, int> wftk::Mixer::data
 

Signal data.

When the visualization hook is enabled, this signals is emitted whenever new data is to be send to the sounddevice.

Parameters:
ptr and length of sample data.


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

Generated Mon Sep 6 21:58:16 2004.
Copyright © 1998-2003 by the respective authors.

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.