Exemplo n.º 1
0
 /// <summary>
 /// Stops the music processing.
 /// </summary>
 public void Stop()
 {
     // Kill all music
     SdlMixer.Mix_HaltMusic();
     SdlMixer.Mix_HaltChannel(-1);
     SdlMixer.Mix_CloseAudio();
 }
        /**
         * Stops all channels as well as the currentSong.
         */
        public void stopAudioEngine()
        {
            for (int i = 0; i < (numChannels + (readyToDeallocate ? 1 : 0) * numChannels); i++)
            {
                SdlMixer.Mix_HaltChannel(i);
            }

            SdlMixer.Mix_HaltMusic();
        }
Exemplo n.º 3
0
        public void HaltChannel()
        {
            InitAudio();
            int result = SdlMixer.Mix_GroupChannels(0, 7, 1);

            result = SdlMixer.Mix_HaltChannel(1);
            //Console.WriteLine("HaltChannel: " + result.ToString());
            Assert.IsTrue(result == 0);
            QuitAudio();
        }
Exemplo n.º 4
0
 /// <summary>
 /// Stop playing on a specific channel
 /// </summary>
 /// <remarks></remarks>
 public void Stop()
 {
     SdlMixer.Mix_HaltChannel(this.index);
     this.sound = null;
 }
Exemplo n.º 5
0
 public void StopChannel(int channel)
 {
     SdlMixer.Mix_HaltChannel(channel);
 }
Exemplo n.º 6
0
        public override void Stop()
        {
            SdlMixer.Mix_HaltChannel(channel);

            watch.Stop();
        }
Exemplo n.º 7
0
 /// <summary>
 /// Stop playing on all channels
 /// </summary>
 public static void Stop()
 {
     SdlMixer.Mix_HaltChannel(-1);
 }
 /**
  * Stops a sound, given the channel.
  *
  * @param channel the channel to stop.
  */
 private void stopChannel(int channel)
 {
     SdlMixer.Mix_HaltChannel(channel);
 }