audiere::MultipleSoundEffect Class Reference

Inheritance diagram for audiere::MultipleSoundEffect:

Inheritance graph
[legend]
Collaboration diagram for audiere::MultipleSoundEffect:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MultipleSoundEffect (AudioDevice *device, SampleBuffer *sb)
void play ()
void stop ()
void setVolume (float volume)
float getVolume ()
void setPan (float pan)
float getPan ()
void setPitchShift (float shift)
float getPitchShift ()

Detailed Description

Definition at line 63 of file sound_effect.cpp.


Constructor & Destructor Documentation

audiere::MultipleSoundEffect::MultipleSoundEffect AudioDevice device,
SampleBuffer sb
[inline]
 

Definition at line 65 of file sound_effect.cpp.


Member Function Documentation

float audiere::MultipleSoundEffect::getPan  )  [inline, virtual]
 

Get current pan.

Implements audiere::SoundEffect.

Definition at line 117 of file sound_effect.cpp.

float audiere::MultipleSoundEffect::getPitchShift  )  [inline, virtual]
 

Get current pitch shift. Defaults to 1.0.

Implements audiere::SoundEffect.

Definition at line 125 of file sound_effect.cpp.

float audiere::MultipleSoundEffect::getVolume  )  [inline, virtual]
 

Gets the current volume.

Returns:
current volume of the output stream

Implements audiere::SoundEffect.

Definition at line 109 of file sound_effect.cpp.

void audiere::MultipleSoundEffect::play  )  [inline, virtual]
 

Trigger playback of the sound. If the SoundEffect is of type SINGLE, this plays the sound if it isn't playing yet, and starts it again if it is. If the SoundEffect is of type MULTIPLE, play() simply starts playing the sound again.

Implements audiere::SoundEffect.

Definition at line 74 of file sound_effect.cpp.

void audiere::MultipleSoundEffect::setPan float  pan  )  [inline, virtual]
 

Set current pan.

Parameters:
pan -1.0 = left, 0.0 = center (default), 1.0 = right

Implements audiere::SoundEffect.

Definition at line 113 of file sound_effect.cpp.

void audiere::MultipleSoundEffect::setPitchShift float  shift  )  [inline, virtual]
 

Set current pitch shift.

Parameters:
shift can range from 0.5 to 2.0. default is 1.0.

Implements audiere::SoundEffect.

Definition at line 121 of file sound_effect.cpp.

void audiere::MultipleSoundEffect::setVolume float  volume  )  [inline, virtual]
 

Sets the sound's volume.

Parameters:
volume 0.0 = silence, 1.0 = maximum volume (default)

Implements audiere::SoundEffect.

Definition at line 105 of file sound_effect.cpp.

void audiere::MultipleSoundEffect::stop  )  [inline, virtual]
 

If the sound is of type SINGLE, stop the sound. If it is of type MULTIPLE, stop all playing instances of the sound.

Implements audiere::SoundEffect.

Definition at line 101 of file sound_effect.cpp.


The documentation for this class was generated from the following file:
Generated on Mon Feb 13 23:09:37 2006 for audiere by  doxygen 1.4.6