Tao.Sdl SDK Documentation

Smpeg.SMPEG_playAudio Method 

Exported callback function for audio playback.

[Visual Basic]
Public Shared Function SMPEG_playAudio( _
   ByVal mpeg As IntPtr, _
   ByVal stream As Byte(), _
   ByVal len As Integer _
) As Integer
[C#]
public static int SMPEG_playAudio(
   IntPtr mpeg,
   byte[] stream,
   int len
);

Parameters

mpeg
Handle to MPEG file.
stream
Bytestream of data
len
Amount of data to fill

Return Value

Amount of data in bytes that was actually written

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

            int SMPEG_playAudio( SMPEG *mpeg, Uint8 *stream, int len )
            

See Also

Smpeg Class | Tao.Sdl Namespace