Tao.Sdl SDK Documentation |
|
Smpeg.SMPEG_new Method
Create a new SMPEG object from an MPEG file.
Parameters
-
file
-
-
info
- On return, if 'info' is not NULL, it will be filled with information about the MPEG object.
-
sdl_audio
- The sdl_audio parameter indicates if SMPEG should initialize the SDL audio subsystem. If not, you will have to use the SMPEG_playaudio() function below to extract the decoded data. Never set this parameter to false (i.e. 0). This will cause the video playback to run very slowly. To disable audio, use the SMPEG_enableaudio function.
Return Value
This function returns a new SMPEG object. Use SMPEG_error() to find out whether or not there was a problem building the MPEG stream.
Remarks
Binds to a C-function call in smpeg.h
SMPEG* SMPEG_new(const char *file, SMPEG_Info* info, int sdl_audio);
See Also
Smpeg Class | Tao.Sdl Namespace