Logo Search packages:      
Sourcecode: scummvm version File versions

Audio::Mixer Class Reference

#include <mixer.h>

Inheritance diagram for Audio::Mixer:

Audio::MixerImpl

List of all members.


Detailed Description

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

Definition at line 61 of file mixer.h.


Public Types

enum  { kMaxChannelVolume = 255, kMaxMixerVolume = 256 }
enum  RawFlags {
  FLAG_UNSIGNED = 1 << 0, FLAG_16BITS = 1 << 1, FLAG_LITTLE_ENDIAN = 1 << 2, FLAG_STEREO = 1 << 3,
  FLAG_REVERSE_STEREO = 1 << 4, FLAG_AUTOFREE = 1 << 5, FLAG_LOOP = 1 << 6
}
enum  SoundType { kPlainSoundType = 0, kMusicSoundType = 1, kSFXSoundType = 2, kSpeechSoundType = 3 }

Public Member Functions

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 void pauseAll (bool paused)=0
virtual void pauseHandle (SoundHandle handle, bool paused)=0
virtual void pauseID (int id, bool paused)=0
virtual void playInputStream (SoundType type, SoundHandle *handle, AudioStream *input, int id=-1, byte volume=kMaxChannelVolume, int8 balance=0, bool autofreeStream=true, bool permanent=false, bool reverseStereo=false)=0
virtual void playRaw (SoundType type, SoundHandle *handle, void *sound, uint32 size, uint rate, byte flags, int id=-1, byte volume=kMaxChannelVolume, int8 balance=0, uint32 loopStart=0, uint32 loopEnd=0)=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

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

Generated by  Doxygen 1.6.0   Back to index