示例#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();
        }
示例#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();
        }
示例#4
0
 /// <summary>
 /// Stop playing on a specific channel
 /// </summary>
 /// <remarks></remarks>
 public void Stop()
 {
     SdlMixer.Mix_HaltChannel(this.index);
     this.sound = null;
 }
示例#5
0
文件: Audio.cs 项目: GuiPast/Gauntlet
 public void StopChannel(int channel)
 {
     SdlMixer.Mix_HaltChannel(channel);
 }
示例#6
0
        public override void Stop()
        {
            SdlMixer.Mix_HaltChannel(channel);

            watch.Stop();
        }
示例#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);
 }