Tao.Sdl SDK Documentation |
|
Smpeg.SMPEG_new_data Method
Create a new SMPEG object from for a raw chunk of data.
Parameters
-
data
- Raw chunck of data
-
size
- Size of chunk
-
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.
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
SMPEG makes a copy of the data, so the application is free to delete after a successful call to this function.
Binds to a C-function call in smpeg.h
SMPEG* SMPEG_new_data(void *data, int size, SMPEG_Info* info, int sdl_audio)
See Also
Smpeg Class | Tao.Sdl Namespace