예제 #1
0
        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();
        }
예제 #2
0
 /// <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);
 }
예제 #3
0
 /// <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);
 }