// Shuts down the source. private void ShutdownSource() { if (id >= 0) { audioSource.SetSpatializerFloat(0, -1.0f); audioSource.spatialize = false; GvrAudio.DestroyAudioSource(id); id = -1; } }
// Shuts down the source. private void ShutdownSoundfield() { if (id >= 0) { for (int channelSet = 0; channelSet < audioSources.Length; ++channelSet) { ShutdownChannelSet(audioSources[channelSet], channelSet); } GvrAudio.DestroyAudioSource(id); id = -1; } }
// Shuts down the source. private void ShutdownSource() { if (id >= 0) { audioSource.SetSpatializerFloat((int)GvrAudio.SpatializerData.Id, -1.0f); // Ensure that the output is zeroed after shutdown. audioSource.SetSpatializerFloat((int)GvrAudio.SpatializerData.ZeroOutput, 1.0f); audioSource.spatialize = false; GvrAudio.DestroyAudioSource(id); id = -1; } }