class
IAudioSourceImplementation
Low-level interface for an audio source.
Should be implemented by the audio plugin.
Public
Methods
~IAudioSourceImplementation
SetVelocity
Velocity of the source.
Determines pitch in relation to AudioListener's position. Only relevant for spatial (3D) sources.
SetTransform
Sets the position and orientation of the audio source.
SetVolume
Volume of the audio played from this source, in [0, 1] range.
SetPitch
Determines the pitch of the played audio. 1 is the default.
SetIsLooping
Determines whether the audio clip should loop when it finishes playing.
SetPriority
Determines the priority of the audio source.
If more audio sources are playing than supported by the hardware, some might get disabled. By setting a higher priority the audio source is guaranteed to be disabled after sources with lower priority.
SetMinDistance
Minimum distance at which audio attenuation starts.
When the listener is closer to the source than this value, audio is heard at full volume. Once farther away the audio starts attenuating.
SetAttenuation
Attenuation that controls how quickly does audio volume drop off as the listener moves further from the source.
Play
Starts playing the currently assigned audio clip.
Pause
Pauses the audio playback.
Stop
Stops audio playback, rewinding it to the start.
SetTime
Determines the current time of playback.
If playback hasn't yet started, it specifies the time at which playback will start at. The time is in seconds, in range [0, clipLength].
GetTime
GetState
Returns the current state of the audio playback (playing/paused/stopped).