next up previous contents index
Next: CDDA functions Up: Command description Previous: Command description   Contents   Index


Callback functions

A callback function is a function of your application called by the driver in some situations.

You use the FMPOpen command to define callback functions.

Depending on the flags specified when declaring your function, the return status is passed in DWORD Value

Your function should look like this:

DWORD MyCallBack(DWORD dwContext, DWORD dwMsg, DWORD dwValue);

You should return a zero value if successful. A return value of FMPM_ERROR specifies that an error occurred while executing a command. The error in Value may be one of the following:

FMPE_ERROR System error occurred while reading the stream

FMPM_STARVATION Message issued when the video decoder is starving. Value is the total size of buffers in the driver in PTS units.

FMPM_EOS Message issued when the video and audio decoders have finished decoding the stream.


Realmagic Build 2001-12-07