예제 #1
0
 private void SetupSource(SoundToolKitSpatialSource source)
 {
     source.Volume                    = Volume;
     source.SimulationQuality         = SimulationQuality;
     source.HrtfSpatializationEnabled = HrtfSpatializationEnabled;
     source.AttenuationEnabled        = AttenuationEnabled;
     source.ReflectionEnabled         = ReflectionEnabled;
     source.ScatteringEnabled         = ScatteringEnabled;
     source.TransmissionEnabled       = TransmissionEnabled;
     source.DiffractionEnabled        = DiffractionEnabled;
     source.ReverbEnabled             = ReverbEnabled;
     source.Attenuation               = Attenuation;
     source.MaxDistance               = MaxDistance;
     source.MinDistance               = MinDistance;
 }
예제 #2
0
 private void PlayOneShot(SoundToolKitSpatialSource source, VolumeControlledSample sample)
 {
     source.Playbacks.Add(new SoundToolKitPlayback(sample.Sample, sample.Volume));
     source.Play();
     source.Playbacks.Last().OnEnded += OnPlaybackEnded;
 }