2.4.2 Playback¶
An application performing a standard streaming playback operation should perform the following steps:
IDeckLinkOutput::DoesSupportVideoMode()
to check if the combination of the video mode and pixel format is supported.
While more frames or audio need to be pre-rolled:
Return audio data from
IDeckLinkAudioOutputCallback::RenderAudioSamples()
.When audio preroll is complete, call
IDeckLinkOutput::EndAudioPreroll()
.
While playback is running:
Schedule more video frames from
IDeckLinkVideoOutputCallback::ScheduledFrameCompleted()
Schedule more audio fromIDeckLinkAudioOutputCallback::RenderAudioSamples()
.
If audio is not required, the call to IDeckLinkOutput::EnableAudioOutput()
, IDeckLinkOutput::SetAudioCallback()
and IDeckLinkOutput::BeginAudioPreroll()
may be omitted.
If pre-roll is not required initial IDeckLinkOutput::ScheduleVideoFrame()
calls and the call to IDeckLinkOutput::BeginAudioPreroll()
and IDeckLinkOutput::EndAudioPreroll()
may be omitted.