/// <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(); }
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(); }
/// <summary> /// Stop playing on a specific channel /// </summary> /// <remarks></remarks> public void Stop() { SdlMixer.Mix_HaltChannel(this.index); this.sound = null; }
public void StopChannel(int channel) { SdlMixer.Mix_HaltChannel(channel); }
public override void Stop() { SdlMixer.Mix_HaltChannel(channel); watch.Stop(); }
/// <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); }