Click or drag to resize

AudioObjectPlayNow Method

Plays the specified audio.

Namespace:  (Default Namespace)
Assembly:  AudioToolkit (in AudioToolkit.dll) Version: 8.2.0.0 (8.2.0.0)
Syntax
C#
public void PlayNow(
	string audioID,
	float delay = 0f,
	float volume = 1f,
	float startTime = 0f
)

Parameters

audioID
Type: SystemString
The audioID to be played.
delay (Optional)
Type: SystemSingle
Start playing after this amount of seconds [Default = 0].
volume (Optional)
Type: SystemSingle
The volume [Default = 0].
startTime (Optional)
Type: SystemSingle
The start time [Default = 0].
Remarks
Does not stop the secondary audio source (if playing). See SwitchAudioSources.
See Also