#include <IAudio.h>
Inheritance diagram for ISound::
Public Methods | |
virtual bool | Init (const SoundInit &init)=0 |
virtual bool | SetProperties (const SoundProp &prop)=0 |
virtual bool | GetProperties (SoundProp &prop) const=0 |
virtual bool | SetVolume (float fVolume)=0 |
virtual bool | GetVolume (float &fVolume) const=0 |
virtual bool | SetPan (float fPan)=0 |
virtual bool | GetPan (float &fPan) const=0 |
virtual bool | SetPitch (float fPitch)=0 |
virtual bool | GetPitch (float &fPitch) const=0 |
virtual bool | SetReadCursor (uint32 nBytes)=0 |
virtual bool | GetReadCursor (uint32 &nBytes) const=0 |
virtual bool | GetSourceSize (uint32 &nBytes) const=0 |
ISound-derived objects are representation of 2D sounds. These objects should be used for any sound that does not require true 3D positioning. The interface provides specific initalization routines, pan controls, and read cursor controls.
|
Gets the current pan value.
|
|
Gets the objects frequency in hertz
|
|
Gets all properties simultaneously.
|
|
Gets the current read cursor position in bytes.
|
|
Retrieves the total size of the current source in bytes.
|
|
Gets the volume for this audio object.
|
|
Initializes the 2D sound parameters. This must be the first function called on the sound after the object is created.
|
|
Sets the pan value on the sound. This function could fail if the buffers is not allowed to make pan changes due to hardware limitations or conflicting parameters.
|
|
Sets the desired frequency of the audio object relative to its original frequency. For instance, a value of 0.5 sets it to half the original pitch, and a value of 2.0 doubles the pitch. Note that the pitch range may be constained by the sample's original pitch and the range allowed in hardware.
|
|
Sets all properties simultaneously.
|
|
Sets the current read cursor position in bytes in the current source.
|
|
Sets the individual volume of a 2D sound. This value will decrease the volume in addition to any decrease from maximum volume set in the master volume controls.
|