dmPMSetAudioCallback(3dm) dmPMSetAudioCallback(3dm)
dmPMSetAudioCallback, dmPMSetVideoCallback - sets the audio and video
callbacks
#include <dmedia/fx_plugin_mgr.h>
DMstatus dmPMSetAudioCallback [Toc] [Back]
( DMeffect* effect,
DMaudiocallback audioCallback,
void * clientData )
DMstatus dmPMSetVideoCallback [Toc] [Back]
( DMeffect* effect,
DMvideocallback videoCallback,
void * clientData )
effect A pointer to a DMeffect, which was returned from
dmPMCreateEffect.
audioCallback A callback for a DMeffect, defined as follows:
DMstatus DMaudiocallback(
void *clientData,
int firstByte,
int size,
unsigned char *samples);
videoCallback A callback for a DMeffect, defined as follows:
DMstatus DMvideocallback(
void *clientData,
int frame,
DMplugintrack track, /* DM_TRACK_A or DM_TRACK_B */
int width,
int height,
int rowBytes,
unsigned char *data);
clientData The clientData gets passed into the callback; can be
NULL.
Your application should supply a callback to obtain different audio
samples or video frames when a plugin requests it. dmPMSetAudioCallback
sets up a callback for the specified audio effect.
Page 1
dmPMSetAudioCallback(3dm) dmPMSetAudioCallback(3dm)
dmPMSetVideoCallback sets up a callback for the specified video effect.
dmPMSetAudioCallback will return DM_SUCCESS if successful, or will return
DM_FAILURE if it fails. dmPMSetVideoCallback will return DM_SUCCESS if
successful, or will return DM_FAILURE if it fails.
dmPMCreateManager(3dm), dmPMCreateEffect(3dm), dmGetError(3dm).
PPPPaaaaggggeeee 2222 [ Back ]
|