Urho.Audio.Sound Class
Sound resource.
See Also: Sound
Syntax
public class Sound : Resource
Remarks
Sounds can be played back with either the SoundSource or the SoundSource3D components.
This allows manual stereo panning of mono sounds; stereo sounds will be output with their original stereo mix.
Requirements
Namespace: Urho.Audio
Assembly: Urho (in Urho.dll)
Assembly Versions: 1.0.0.0
Assembly: Urho (in Urho.dll)
Assembly Versions: 1.0.0.0
The members of Urho.Audio.Sound are listed below.
See Also: Resource
Public Constructors
Protected Constructors
Empty constructor, chain to this constructor when you provide your own constructor that sets the handle field. |
Public Properties
[read-only] | Compressed | Boolean. Return whether is compressed. |
[read-only] | DataSize | UInt32. Return total sound data size. |
[read-only] | DecoderStream | SoundStream. Return a new instance of a decoder sound stream. Used by compressed sounds. |
[read-only] | End | SByte*. Return sound data end. |
[read-only] | Frequency | Single. Return default frequency as a float. |
[read-only] | IntFrequency | UInt32. Return default frequency as an integer. |
[read-only] | Length | Single. Return length in seconds. |
Looped | Boolean. Set loop on/off. If loop is enabled, sets the full sound as loop range. | |
[read-only] | Repeat | SByte*. Return loop start. |
[read-only] | SampleSize | UInt32. Return sample size. |
[read-only] | SixteenBit | Boolean. Return whether data is sixteen bit. |
[read-only] | Start | SByte*. Return sound data start. |
[read-only] | Stereo | Boolean. Return whether data is stereo. |
[read-only] override | Type | StringHash. Urho's type system type. |
[read-only] override | TypeName | String. Urho's low-level type name. |
[read-only] static | TypeNameStatic | String. Urho's low-level type name, accessible as a static method. |
[read-only] static | TypeStatic | StringHash. Urho's low-level type, accessible as a static method. |
Public Methods
override | BeginLoad(File) | |
override | BeginLoad(MemoryBuffer) | |
FixInterpolation()Fix interpolation by copying data from loop start to loop end (looped), or adding silence (oneshot.) Called internally, does not normally need to be called, unless the sound data is modified manually on the fly. | ||
LoadOggVorbis(File) | ||
LoadOggVorbis(MemoryBuffer) | ||
LoadRaw(File) | ||
LoadRaw(MemoryBuffer) | ||
LoadWav(File) | ||
LoadWav(MemoryBuffer) | ||
static | RegisterObject(Context)Register object factory. | |
SetData(Void*, UInt32)Set uncompressed sound data. | ||
SetFormat(UInt32, Boolean, Boolean)Set uncompressed sound data format. | ||
SetLoop(UInt32, UInt32)Define loop. | ||
SetSize(UInt32)Set sound size in bytes. Also resets the sound to be uncompressed and one-shot. |