Exemplo n.º 1
0
        private void createLoopingSample()
        {
            sampleChannel?.Dispose();
            sampleChannel = audioManager.Samples.Get("tone.wav");

            // reduce volume of the tone due to how loud it normally is.
            sampleChannel.Volume.Value = 0.05;
            sampleChannel.Looping      = true;
        }
Exemplo n.º 2
0
        private void createSample()
        {
            sampleChannel?.Dispose();
            sampleChannel = samples.Get("tone.wav");

            // reduce volume of the tone due to how loud it normally is.
            if (sampleChannel != null)
            {
                sampleChannel.Volume.Value = 0.05;
            }
        }