예제 #1
0
 /// <summary>
 /// Stops the music processing.
 /// </summary>
 public void Stop()
 {
     // Kill all music
     SdlMixer.Mix_HaltMusic();
     SdlMixer.Mix_HaltChannel(-1);
     SdlMixer.Mix_CloseAudio();
 }
예제 #2
0
 /// <summary>
 /// Stops the currently played music and triggers a new one.
 /// </summary>
 /// <param name="category"></param>
 private void InterruptMusic(string category)
 {
     // Stop the music
     SdlMixer.Mix_HaltMusic();
     PlayMusic(category);
     SdlMixer.Mix_ResumeMusic();
 }
        /**
         * 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();
        }
예제 #4
0
        public void HaltMusic()
        {
            InitAudio();
            int result = SdlMixer.Mix_GroupChannels(0, 7, 1);

            SdlMixer.Mix_LoadMUS("test.wav");
            result = SdlMixer.Mix_HaltMusic();
            Assert.IsTrue(result == 0);
            QuitAudio();
        }
예제 #5
0
 internal void Stop()
 {
     SdlMixer.Mix_HaltMusic();
     _playCount = 0;
 }
예제 #6
0
파일: Audio.cs 프로젝트: GuiPast/Gauntlet
 public void StopMusic()
 {
     SdlMixer.Mix_HaltMusic();
 }
예제 #7
0
 /// <summary>
 /// Stops playing music
 /// </summary>
 public static void Stop()
 {
     SdlMixer.Mix_HaltMusic();
 }
예제 #8
0
 /// Interrumpir toda la reproducción de sonido
 public void Interrumpir()
 {
     SdlMixer.Mix_HaltMusic();
 }