public void ExpireChannel() { InitAudio(); int result = SdlMixer.Mix_GroupChannels(0, 7, 1); result = SdlMixer.Mix_ExpireChannel(1, 100); //Console.WriteLine("HaltChannel: " + result.ToString()); Assert.IsTrue(result == 1); QuitAudio(); }
/// <summary> /// Stop playing a channel after a specified time interval /// </summary> /// <param name="ms"> /// The number of milliseconds to stop playing after /// </param> /// <remarks></remarks> public void Expire(int ms) { SdlMixer.Mix_ExpireChannel(this.index, ms); }
/// <summary> /// Stop playing on all channels after a specified time interval /// </summary> /// <param name="milliseconds"> /// The number of milliseconds to stop playing after /// </param> public static void Expire(int milliseconds) { SdlMixer.Mix_ExpireChannel(-1, milliseconds); }