Audaspace 1.5.0
A high level audio library.
|
The IHandle interface represents a playback handles of a specific device. More...
#include <IHandle.h>
Public Member Functions | |
virtual | ~IHandle () |
Destroys the handle. | |
virtual bool | pause ()=0 |
Pauses a played back sound. | |
virtual bool | resume ()=0 |
Resumes a paused sound. | |
virtual bool | stop ()=0 |
Stops a played back or paused sound. | |
virtual bool | getKeep ()=0 |
Gets the behaviour of the device for a played back sound when the sound doesn't return any more samples. | |
virtual bool | setKeep (bool keep)=0 |
Sets the behaviour of the device for a played back sound when the sound doesn't return any more samples. | |
virtual bool | seek (double position)=0 |
Seeks in a played back sound. | |
virtual double | getPosition ()=0 |
Retrieves the current playback position of a sound. | |
virtual Status | getStatus ()=0 |
Returns the status of a played back sound. | |
virtual float | getVolume ()=0 |
Retrieves the volume of a playing sound. | |
virtual bool | setVolume (float volume)=0 |
Sets the volume of a playing sound. | |
virtual float | getPitch ()=0 |
Retrieves the pitch of a playing sound. | |
virtual bool | setPitch (float pitch)=0 |
Sets the pitch of a playing sound. | |
virtual int | getLoopCount ()=0 |
Retrieves the loop count of a playing sound. | |
virtual bool | setLoopCount (int count)=0 |
Sets the loop count of a playing sound. | |
virtual bool | setStopCallback (stopCallback callback=0, void *data=0)=0 |
Sets the callback function that's called when the end of a playing sound is reached. | |
The IHandle interface represents a playback handles of a specific device.
|
pure virtual |
Gets the behaviour of the device for a played back sound when the sound doesn't return any more samples.
Implemented in SoftwareDevice::SoftwareHandle.
|
pure virtual |
Retrieves the loop count of a playing sound.
A negative value indicates infinity.
Implemented in SoftwareDevice::SoftwareHandle.
|
pure virtual |
Retrieves the pitch of a playing sound.
Implemented in SoftwareDevice::SoftwareHandle.
|
pure virtual |
Retrieves the current playback position of a sound.
Implemented in SoftwareDevice::SoftwareHandle.
|
pure virtual |
Returns the status of a played back sound.
Implemented in SoftwareDevice::SoftwareHandle.
|
pure virtual |
Retrieves the volume of a playing sound.
Implemented in SoftwareDevice::SoftwareHandle.
|
pure virtual |
Pauses a played back sound.
Implemented in SoftwareDevice::SoftwareHandle.
|
pure virtual |
Resumes a paused sound.
Implemented in SoftwareDevice::SoftwareHandle.
|
pure virtual |
Seeks in a played back sound.
position | The new position from where to play back, in seconds. |
Implemented in SoftwareDevice::SoftwareHandle.
|
pure virtual |
Sets the behaviour of the device for a played back sound when the sound doesn't return any more samples.
keep | True when the source should be paused and not deleted. |
Implemented in SoftwareDevice::SoftwareHandle.
|
pure virtual |
Sets the loop count of a playing sound.
A negative value indicates infinity.
count | The new loop count. |
Implemented in SoftwareDevice::SoftwareHandle.
|
pure virtual |
Sets the pitch of a playing sound.
pitch | The pitch. |
Implemented in SoftwareDevice::SoftwareHandle.
|
pure virtual |
Sets the callback function that's called when the end of a playing sound is reached.
callback | The callback function. |
data | The data that should be passed to the callback function. |
Implemented in SoftwareDevice::SoftwareHandle.
|
pure virtual |
Sets the volume of a playing sound.
volume | The volume. |
Implemented in SoftwareDevice::SoftwareHandle.
|
pure virtual |
Stops a played back or paused sound.
The handle is definitely invalid afterwards.
Implemented in SoftwareDevice::SoftwareHandle.