|
CeresEngine 0.2.0
A game development framework
|
A descriptor structure that describes the creation of an audio source. More...
#include <CeresEngine/Audio/API/Source.hpp>
Public Attributes | |
| AudioAPIBufferPtr | buffer = nullptr |
| The buffer to attached to the audio source. | |
| Vector3 | position = Vector3(0.0) |
| The source position. | |
| Vector3 | direction = Vector3(0.0) |
| The source direction. | |
| Vector3 | velocity = Vector3(0.0) |
| The source velocity. | |
| bool | startPlaying = false |
If set to true, will automatically start playing the audio when the source is created. | |
| bool | looping = false |
If set to true, will loop the source until it is manually stopped. | |
| double | pitch = 1.0 |
| The pitch multiplier. Always positive. | |
| double | gain = 1.0 |
| The source gain. Value should be positive. | |
| double | minimumGain = 0.0 |
| The source minimum gain. | |
| double | maximumGain = 1.0 |
| The source maximum gain. | |
| double | maximumDistance = 100.0 |
| Used with the Inverse Clamped Distance Model to set the distance where there will no longer be any attenuation of the source. | |
| double | rolloffFactor = 1.0 |
| The rolloff rate for the source. Default is 1.0. | |
| double | referenceDistance = 1.0 |
The distance under which the volume for the source would normally drop by half (before being influenced by rolloffFactor or maximumDistance) | |
| double | coneOuterGain = 1.0 |
| The gain when outside the oriented cone. | |
| double | coneInnerAngle = 360.0 |
| The inner angle of the sound cone, in degrees. Default is 360. | |
| double | coneOuterAngle = 360.0 |
| The outer angle of the sound cone, in degrees. Default is 360. | |
| bool | relative = false |
| Determines if the positions are relative to the listener. | |
| double | offset = 0.0 |
The playback position, expressed in seconds. Default is 0.0. | |
A descriptor structure that describes the creation of an audio source.
| AudioAPIBufferPtr CeresEngine::AudioAPISourceDescriptor::buffer = nullptr |
The buffer to attached to the audio source.
The buffer can be changed by calling update on the source with a new buffer value.
| double CeresEngine::AudioAPISourceDescriptor::coneInnerAngle = 360.0 |
The inner angle of the sound cone, in degrees. Default is 360.
| double CeresEngine::AudioAPISourceDescriptor::coneOuterAngle = 360.0 |
The outer angle of the sound cone, in degrees. Default is 360.
| double CeresEngine::AudioAPISourceDescriptor::coneOuterGain = 1.0 |
The gain when outside the oriented cone.
| double CeresEngine::AudioAPISourceDescriptor::gain = 1.0 |
The source gain. Value should be positive.
If set to true, will loop the source until it is manually stopped.
| double CeresEngine::AudioAPISourceDescriptor::maximumDistance = 100.0 |
Used with the Inverse Clamped Distance Model to set the distance where there will no longer be any attenuation of the source.
| double CeresEngine::AudioAPISourceDescriptor::maximumGain = 1.0 |
The source maximum gain.
| double CeresEngine::AudioAPISourceDescriptor::minimumGain = 0.0 |
The source minimum gain.
| double CeresEngine::AudioAPISourceDescriptor::offset = 0.0 |
The playback position, expressed in seconds. Default is 0.0.
| double CeresEngine::AudioAPISourceDescriptor::pitch = 1.0 |
The pitch multiplier. Always positive.
| double CeresEngine::AudioAPISourceDescriptor::referenceDistance = 1.0 |
The distance under which the volume for the source would normally drop by half (before being influenced by rolloffFactor or maximumDistance)
Determines if the positions are relative to the listener.
Default is false.
| double CeresEngine::AudioAPISourceDescriptor::rolloffFactor = 1.0 |
The rolloff rate for the source. Default is 1.0.
If set to true, will automatically start playing the audio when the source is created.