Logo Search packages:      
Sourcecode: scummvm version File versions  Download package

Public Types | Public Member Functions

Audio::Mixer Class Reference

#include <mixer.h>

Inheritance diagram for Audio::Mixer:
Inheritance graph
[legend]
Collaboration diagram for Audio::Mixer:
Collaboration graph
[legend]

List of all members.

Public Types

enum  { kMaxChannelVolume = 255, kMaxMixerVolume = 256 }
enum  SoundType { kPlainSoundType = 0, kMusicSoundType = 1, kSFXSoundType = 2, kSpeechSoundType = 3 }

Public Member Functions

virtual Timestamp getElapsedTime (SoundHandle handle)=0
virtual uint getOutputRate () const =0
virtual uint32 getSoundElapsedTime (SoundHandle handle)=0
virtual int getSoundID (SoundHandle handle)=0
virtual int getVolumeForSoundType (SoundType type) const =0
virtual bool hasActiveChannelOfType (SoundType type)=0
virtual bool isReady () const =0
virtual bool isSoundHandleActive (SoundHandle handle)=0
virtual bool isSoundIDActive (int id)=0
virtual bool isSoundTypeMuted (SoundType type) const =0
virtual void muteSoundType (SoundType type, bool mute)=0
virtual void pauseAll (bool paused)=0
virtual void pauseHandle (SoundHandle handle, bool paused)=0
virtual void pauseID (int id, bool paused)=0
virtual void playStream (SoundType type, SoundHandle *handle, AudioStream *stream, int id=-1, byte volume=kMaxChannelVolume, int8 balance=0, DisposeAfterUse::Flag autofreeStream=DisposeAfterUse::YES, bool permanent=false, bool reverseStereo=false)=0
virtual void setChannelBalance (SoundHandle handle, int8 balance)=0
virtual void setChannelVolume (SoundHandle handle, byte volume)=0
virtual void setVolumeForSoundType (SoundType type, int volume)=0
virtual void stopAll ()=0
virtual void stopHandle (SoundHandle handle)=0
virtual void stopID (int id)=0

Detailed Description

The main audio mixer handles mixing of an arbitrary number of audio streams (in the form of AudioStream instances).

Definition at line 56 of file mixer.h.


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

Generated by  Doxygen 1.6.0   Back to index