See Also: SoundSource
Provides support for playing back Sound.
The SoundSource components support automatic removal from the node they belong to, once playback is finished. To use, set the SoundSource.AutoRemove property on them. This may be useful when a game object plays several "fire and forget" sound effects.
Assembly: Urho (in Urho.dll)
Assembly Versions: 188.8.131.52
The members of Urho.Audio.SoundSource are listed below.
See Also: Component
|Constructs a new instance of Urho.Audio.SoundSource which is tied to the Application.CurrentContext.|
|Constructs a new instance of Urho.Audio.SoundSource, given a raw pointer to an unmanaged object|
|Constructs a new instance of Urho.Audio.SoundSource linked to a specific Context.|
|Attenuation||Single. Return attenuation. Or Set attenuation. 1.0 is unaltered. Used for distance attenuated playback.|
|AutoRemoveMode||AutoRemoveMode. Return automatic removal mode on sound playback completion. Or Set to remove either the sound source component or its owner node from the scene automatically on sound playback completion. Disabled by default.|
|Frequency||Single. Return frequency. Or Set frequency.|
|Gain||Single. Return gain. Or Set gain. 0.0 is silence, 1.0 is full volume.|
|Panning||Single. Return stereo panning. Or Set stereo panning. -1.0 is full left and 1.0 is full right.|
|[read-only]||Playing||Boolean. Return whether is playing.|
|[read-only]||PlayPosition||SByte*. Return playback position.|
|PositionAttr||Int32. Return sound position attribute. Or Set sound position attribute.|
|[read-only]||Sound||Sound. Return sound.|
|[read-only]||SoundAttr||ResourceRef. Return sound attribute.|
|[read-only]||SoundType||String. Return sound type, determines the master gain group.|
|[read-only]||TimePosition||Single. Return playback time position.|
|Type||StringHash. Urho's type system type.|
|TypeName||String. Urho's low-level type name.|
|TypeNameStatic||String. Urho's low-level type name, accessible as a static method.|
|TypeStatic||StringHash. Urho's low-level type, accessible as a static method.|
|Mix(Int32*, UInt32, Int32, Boolean, Boolean)|
Mix sound source output to a 32-bit clipping buffer. Called by Audio.
Play a sound.
Start playing a sound stream.
Play a sound with specified frequency.
|Play(Sound, Single, Single)|
Play a sound with specified frequency and gain.
|Play(Sound, Single, Single, Single)|
Play a sound with specified frequency, gain and panning.
Register object factory.
Set sound playing attribute
Set new playback position.
Set sound type, determines the master gain group.
Update the sound source. Perform subclass specific operations. Called by Audio.
Update the effective master gain. Called internally and by Audio when the master gain changes.