/// <summary> /// Stops the music processing. /// </summary> public void Stop() { // Kill all music SdlMixer.Mix_HaltMusic(); SdlMixer.Mix_HaltChannel(-1); SdlMixer.Mix_CloseAudio(); }
/// <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(); }
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(); }
internal void Stop() { SdlMixer.Mix_HaltMusic(); _playCount = 0; }
public void StopMusic() { SdlMixer.Mix_HaltMusic(); }
/// <summary> /// Stops playing music /// </summary> public static void Stop() { SdlMixer.Mix_HaltMusic(); }
/// Interrumpir toda la reproducción de sonido public void Interrumpir() { SdlMixer.Mix_HaltMusic(); }