Tao.Sdl SDK Documentation

Smpeg.SMPEG_new Method 

Create a new SMPEG object from an MPEG file.

[Visual Basic]
Public Shared Function SMPEG_new( _
   ByVal file As String, _
   ByRef info As SMPEG_Info, _
   ByVal sdl_audio As Integer _
) As IntPtr
[C#]
public static IntPtr SMPEG_new(
   string file,
   out SMPEG_Info info,
   int sdl_audio
);

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