This is an interface class for a non-spacialized sound. More...
#include <sound.h>
Public Member Functions | |
iSound () | |
Class constructor. | |
virtual | ~iSound () |
Class destructor. | |
virtual Boole | AttachEffect (const UInt32 Slot, iEffect *Eff)=0 |
Attaches an iEffect to this sound. More... | |
virtual Boole | AttachFilter (iFilter *Fil)=0 |
Attaches a filter to this sound that will operate on the direct feed, separate from any effects. More... | |
virtual Real | GetBaseVolume () const =0 |
Gets the current volume of the sound source. More... | |
virtual UInt32 | GetCompressedSize () const |
Gets the size of the encoded audio source in use. More... | |
virtual UInt32 | GetCurrentCompressedPosition () const |
Gets the sounds current position in the encoded audio source. More... | |
virtual UInt32 | GetCurrentPosition () const |
Gets the sounds current position in the decoded audio source. More... | |
virtual Real | GetCurrentTime () const |
Gets the current time position in the stream. More... | |
virtual iDecoder * | GetDecoder () const =0 |
Gets the decoder that belongs to this sound. More... | |
virtual iEffect * | GetEffect (const UInt32 Slot) const =0 |
Gets the iEffect attached at the specified slot. More... | |
virtual iFilter * | GetFilter () const =0 |
Gets the filter currently being used by this object. More... | |
virtual UInt32 | GetMaxEffectSlots () const =0 |
Gets the max number of iEffect instances that can be attached to this sound. More... | |
virtual Real | GetMaxVolume () const =0 |
Gets the Maximum volume of the sound source. More... | |
virtual Real | GetMinVolume () const =0 |
Gets the minimum volume of the sound source. More... | |
virtual UInt32 | GetNumEffectSlotsAvailable () const =0 |
Gets the number of iEffect slots remaining that can be attached to. More... | |
virtual Real | GetPitch () const =0 |
Gets the pitch of the sound source. More... | |
virtual UInt32 | GetTotalSize () const |
Gets the size of the decoded audio source in use. More... | |
virtual Real | GetTotalTime () const |
Gets the length of the stream in seconds. More... | |
virtual UInt16 | GetType () const =0 |
Gets the sound type of this sound. More... | |
virtual Real | GetVolume () const =0 |
Gets the current volume of the sound source after all volume settings are applied. More... | |
virtual Boole | IsLooping () const =0 |
Checks to see if the sound is currently set to loop. More... | |
virtual Boole | IsPaused () const =0 |
Gets whether or not the sound is currently paused. More... | |
virtual Boole | IsPlaying () const =0 |
Gets whether or not the sound is currently playing. More... | |
virtual Boole | IsStopped () const =0 |
Gets whether or not the sound is currently stopped. More... | |
virtual Boole | IsValid () const =0 |
Checks to see if this sound is valid and is ready for playback. More... | |
virtual void | Loop (Boole ToLoop)=0 |
Sets whether the playback of the sound should loop or not. More... | |
virtual void | Pause ()=0 |
Pauses playback of the sound at it's current position in the stream. | |
virtual Boole | Play ()=0 |
Plays the sound with it's current configuration. More... | |
virtual void | RemoveEffect (const UInt32 Slot)=0 |
Removes the iEffect in the specified slot. More... | |
virtual void | RemoveFilter ()=0 |
Removes any currently attached filters. | |
virtual Boole | Seek (const Real Seconds, Boole Relative=false)=0 |
Sets the current position of the stream from which to playback audio. More... | |
virtual void | SetBaseVolume (const Real Base)=0 |
Sets the current volume of the sound source before effects and other volume settings. More... | |
virtual void | SetMaxVolume (const Real MaxVol)=0 |
Sets the maximum volume the sound source can achieve. More... | |
virtual void | SetMinVolume (const Real MinVol)=0 |
Sets the minimum volume the sound source can achieve. More... | |
virtual void | SetPitch (const Real Pitch)=0 |
Sets the pitch of the sound source. More... | |
virtual void | SetStream (Resource::DataStreamPtr Stream, const Audio::Encoding Encode)=0 |
Sets a new stream for playback by this iSound. More... | |
virtual void | SetStream (const UInt16 Type, Resource::DataStreamPtr Stream, const Audio::Encoding Encode)=0 |
Sets a new stream for playback by this iSound. More... | |
virtual void | SetStream (iDecoder *Decode)=0 |
Sets a new stream for playback by this iSound via a new decoder. More... | |
virtual void | SetStream (const UInt16 Type, iDecoder *Decode)=0 |
Sets a new stream for playback by this iSound via a new decoder. More... | |
virtual void | Stop ()=0 |
Stops playback of the sound and resets it's position back to the start. | |
This is an interface class for a non-spacialized sound.
The iSound class is intended for non-3D purposes only.
|
pure virtual |
Attaches an iEffect to this sound.
Attaches a filter to this sound that will operate on the direct feed, separate from any effects.
Fil | The filter to be attached. |
|
pure virtual |
Gets the current volume of the sound source.
This function will get the current volume of the sound source before effects and other volume settings are applied.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
pure virtual |
Gets the decoder that belongs to this sound.
|
pure virtual |
Gets the filter currently being used by this object.
|
pure virtual |
|
pure virtual |
Gets the Maximum volume of the sound source.
|
pure virtual |
Gets the minimum volume of the sound source.
|
pure virtual |
|
pure virtual |
Gets the pitch of the sound source.
|
inlinevirtual |
|
inlinevirtual |
|
pure virtual |
Gets the sound type of this sound.
|
pure virtual |
Gets the current volume of the sound source after all volume settings are applied.
|
pure virtual |
Checks to see if the sound is currently set to loop.
|
pure virtual |
Gets whether or not the sound is currently paused.
|
pure virtual |
Gets whether or not the sound is currently playing.
|
pure virtual |
Gets whether or not the sound is currently stopped.
|
pure virtual |
Checks to see if this sound is valid and is ready for playback.
|
pure virtual |
Sets whether the playback of the sound should loop or not.
ToLoop | Whether to restart the sound when the end of playback is reached. |
|
pure virtual |
Plays the sound with it's current configuration.
|
pure virtual |
Removes the iEffect in the specified slot.
Slot | The slot to remove the occupying iEffect. |
|
pure virtual |
Sets the current position of the stream from which to playback audio.
Seconds | Number of seconds to seek. |
Relative | Whether to seek from the current position or the start of the stream. |
|
pure virtual |
Sets the current volume of the sound source before effects and other volume settings.
This function will set the current volume of the sound source before effects (like attenuation) are applied.
Base | The volume of the sound source to be applied. |
|
pure virtual |
Sets the maximum volume the sound source can achieve.
This function will set the maximum volume the sound source can achieve after effects(like attenuation) have been applied.
MaxVol | The maximum volume allowed for the sound source. |
|
pure virtual |
Sets the minimum volume the sound source can achieve.
This function will set the minimum volume the sound source can achieve after effects(like attenuation) have been applied.
MinVol | The minimum volume allowed for the sound source. |
|
pure virtual |
Sets the pitch of the sound source.
Pitch | The new pitch of the sound. |
|
pure virtual |
Sets a new stream for playback by this iSound.
Stream | The stream to be decoded and played by this sound. |
Encode | The encoding to expect when decoding the stream provided. |
|
pure virtual |
|
pure virtual |
|
pure virtual |