Class Audio
- Namespace
- BasilEngine.Components
- Assembly
- BasilEngine.dll
[NativeHeader("Bindings/ManagedAudio.hpp")]
[NativeClass("ManagedAudio", ".")]
public class Audio : Component
- Inheritance
-
Audio
- Inherited Members
Properties
Looping
Whether the audio should loop when it reaches the end.
public bool Looping { get; set; }
Property Value
Volume
Volume multiplier for this audio source.
public float Volume { get; set; }
Property Value
Methods
GetIsLooping(ulong)
[NativeMethod("GetIsLooping")]
[StaticAccessor("ManagedAudio", StaticAccessorType.DoubleColon)]
public static extern bool GetIsLooping(ulong handle)
Parameters
handleulong
Returns
InternalPause(ulong)
[NativeMethod("Pause")]
[StaticAccessor("ManagedAudio", StaticAccessorType.DoubleColon)]
public static extern void InternalPause(ulong handle)
Parameters
handleulong
InternalPlay(ulong)
[NativeMethod("Play")]
[StaticAccessor("ManagedAudio", StaticAccessorType.DoubleColon)]
public static extern void InternalPlay(ulong handle)
Parameters
handleulong
InternalStop(ulong)
[NativeMethod("Stop")]
[StaticAccessor("ManagedAudio", StaticAccessorType.DoubleColon)]
public static extern void InternalStop(ulong handle)
Parameters
handleulong
Pause()
Pauses playback.
public void Pause()
Play()
Starts playback.
public void Play()
SetIsLooping(ulong, bool)
[NativeMethod("SetIsLooping")]
[StaticAccessor("ManagedAudio", StaticAccessorType.DoubleColon)]
public static extern void SetIsLooping(ulong handle, bool isLooping)
Parameters
Stop()
Stops playback and resets the cursor to the start.
public void Stop()
getVolume(ulong)
[NativeMethod("GetVolume")]
[StaticAccessor("ManagedAudio", StaticAccessorType.DoubleColon)]
public static extern float getVolume(ulong handle)
Parameters
handleulong
Returns
setVolume(ulong, float)
[NativeMethod("SetVolume")]
[StaticAccessor("ManagedAudio", StaticAccessorType.DoubleColon)]
public static extern void setVolume(ulong handle, float volume)