IAudioEngine
Interface
Members
4
PlaySfxAsync
method
Plays a sound-bank clip by alias on the SFX channel. volume (0..1) overrides the clip default; null uses it.Task PlaySfxAsync(string alias, float? volume = default, CancellationToken cancellationToken = default)SetChannelVolumeAsync
method
Sets a channel's volume (0..1), applied live to in-flight playback and persisted as a mix preference.Task SetChannelVolumeAsync(AudioChannel channel, float volume, CancellationToken cancellationToken = default)SpeakAsync
method
Speaks text on the TTS channel using the default voice unless voice overrides it.Task SpeakAsync(string text, TtsOverride voice = default, CancellationToken cancellationToken = default)StopAsync
method
Stops in-flight playback (and clears the TTS queue) for a channel, or all channels.Task StopAsync(AudioChannel channel = default, CancellationToken cancellationToken = default)
