Ejemplo n.º 1
0
        public void FadeInChannelTimed()
        {
            InitAudio();
            int    result   = SdlMixer.Mix_GroupChannels(0, 7, 1);
            IntPtr chunkPtr = SdlMixer.Mix_LoadWAV("test.wav");

            result = SdlMixer.Mix_FadeInChannelTimed(1, chunkPtr, -1, 0, -1);
            Thread.Sleep(500);
            Console.WriteLine("PlayChannel: " + result.ToString());
            Assert.IsTrue(result != -1);
            QuitAudio();
        }
Ejemplo n.º 2
0
 public static int Mix_FadeInChannel(int channel, IntPtr chunk, int loops, int ms)
 {
     return(SdlMixer.Mix_FadeInChannelTimed(channel, chunk, loops, ms, -1));
 }