| Support Forum G3D Web Page |
Public Member Functions | |
| bool | done () const |
| Return true if the sound has finished playing and the channel is no longer needed. More... | |
| bool | paused () const |
| void | set3DAttributes (const Point3 &wsPosition, const Vector3 &wsVelocity) |
| In world space. More... | |
| void | setFrequency (float hz) |
| Playback frequency in Hz. More... | |
| void | setPan (float p) |
| void | setPaused (bool paused) |
| void | setVolume (float v) |
| void | stop () |
| Stop the sound currently playing on this channel. More... | |
Protected Member Functions | |
| AudioChannel (FMOD::Channel *f) | |
| void | cleanup () |
| Delete resources. More... | |
Protected Attributes | |
| FMOD::Channel * | m_fmodChannel |
Friends | |
| class | AudioDevice |
| class | Sound |
A playing Sound.
|
inlineprotected |
|
protected |
Delete resources.
| bool G3D::AudioChannel::done | ( | ) | const |
Return true if the sound has finished playing and the channel is no longer needed.
| bool G3D::AudioChannel::paused | ( | ) | const |
In world space.
The velocity is used for dopler; the sounds will not automatically move on their own but must be set each main loop iteration.
| void G3D::AudioChannel::setFrequency | ( | float | hz | ) |
Playback frequency in Hz.
| void G3D::AudioChannel::setPan | ( | float | p | ) |
| p | -1.0 = left, 0.0 = center, 1.0 = right |
| void G3D::AudioChannel::setPaused | ( | bool | paused | ) |
| void G3D::AudioChannel::setVolume | ( | float | v | ) |
| v | on [0, 1] |
| void G3D::AudioChannel::stop | ( | ) |
Stop the sound currently playing on this channel.
|
friend |
|
friend |
|
protected |
1.8.15