Synced
AudioRuntime.Play
Section titled “AudioRuntime.Play”
- Starts one clip using explicit playback parameters.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Audio.Runtime
Declaration
Section titled “Declaration”public Inno.Audio.AudioVoiceHandle Inno.Audio.Runtime.AudioRuntime.Play(Inno.Audio.AudioClipAsset clip, Inno.Audio.AudioPlayOptions options)Parameters
Section titled “Parameters”Parameter clip: Imported clip to prepare and play.
Parameter options: Immutable playback parameters.
Returns
Section titled “Returns”A preparing voice handle owned by the current device generation.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentException: Playback options are uninitialized. The request is rejected before asset acquisition or voice stealing.