When and how to invoke these functions? [Archive] - Quintessential Forum

PDA

View Full Version : When and how to invoke these functions?


shaohao
01-23-2004, 03:55 PM
Hi, Paul:
Can you tell me when and how to invoke(call) "PositionUpdate" function
e.g: QCDCallbacks->toPlayer.PositionUpdate(marker)
in playback plug-in?

And also the "ProcessData"--when and how?

Another question: Is "GetCurrentPosition" in input plug-in no useful any more?

shaohao
01-24-2004, 04:43 PM
Any Replies?

Paul
01-24-2004, 05:42 PM
Playback plugins are sent 'markers' with the audio data they receive. These markers must be sent back to QCD the moment the data that they correspond with is played. Use QCDCallbacks->toPlayer.PositionUpdate(marker) to send back these markers. Note: the time the data is 'played' is not the same as when it is sent to the soundcard (due to buffering).

ProcessData also must be timed with the currently playing sample. Send the audio data that was just played to ProcessData to power the visualizations.