Synced
AudioVoiceParameters.Constructor
Section titled “AudioVoiceParameters.Constructor”
- Creates a voice parameter snapshot.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Audio
Scope: Runtime
Declaration
Section titled “Declaration”public InnoEngine.Audio.AudioVoiceParameters.AudioVoiceParameters(float volume, float pitch, float pan, InnoEngine.Audio.AudioSpatialOptions? spatial = null)Parameters
Section titled “Parameters”Parameter volume: Linear voice gain.
Parameter pitch: Playback-rate multiplier.
Parameter pan: Stereo pan from negative one to positive one.
Parameter spatial: Optional spatial playback parameters.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentOutOfRangeException: Gain, pitch, or pan is non-finite or outside its valid range.