Tao.Sdl SDK Documentation |
|
Smpeg.SMPEG_playAudioSDL Method
Wrapper for SMPEG_playAudio() that can be passed to SDL and SDL_mixer. Exported callback function for audio playback.
[Visual Basic]
Public Shared Sub SMPEG_playAudioSDL( _
ByVal
mpeg As
IntPtr, _
ByVal
stream As
Byte(), _
ByVal
len As
Integer _
)
Parameters
-
mpeg
- MPEG object.
-
stream
- Bytestream of data
-
len
- Amount of data to fill
Remarks
The function takes a buffer and the amount of data to fill, and returns the amount of data in bytes that was actually written. This will be the amount requested unless the MPEG audio has finished.
Binds to a C-function call in smpeg.h
void SMPEG_playAudioSDL( void *mpeg, Uint8 *stream, int len )
See Also
Smpeg Class | Tao.Sdl Namespace