private SMPEG_setvolume ( |
||
mpeg | ||
volume | int | |
Результат | void |
public void SMPEG_play() { this.InitSdl(); //IntPtr intPtr = Smpeg.SMPEG_new("test.mpg", out info, 0); //IntPtr intPtr = Sdl.SDL_RWFromFile("test.mpg", "rb"); IntPtr intPtr = Smpeg.SMPEG_new("../../test.mpg", out info, 0); Console.WriteLine("Smpeg_error: " + Smpeg.SMPEG_error(intPtr)); Assert.IsFalse(intPtr == IntPtr.Zero); Smpeg.SMPEG_enableaudio(intPtr, 1); Smpeg.SMPEG_enablevideo(intPtr, 1); Smpeg.SMPEG_setvolume(intPtr, 100); Smpeg.SMPEG_setdisplay(intPtr, surfacePtr, IntPtr.Zero, null); Smpeg.SMPEG_play(intPtr); //while (Smpeg.SMPEG_status(intPtr) == Smpeg.SMPEG_PLAYING){} Thread.Sleep(sleepTime); Smpeg.SMPEG_stop(intPtr); Smpeg.SMPEG_delete(intPtr); this.Quit(); }