Displaying 1 result from an estimated 1 matches for "videostarttime".
2010 Aug 15
2
Beginner Hurdles
...undChannel bufChan; // my wrapper class for OpenAL
if( video.Load( "~/Desktop/ogg-theora-tests/320x240.ogg" ) != noErr )
ErrorDialog( "Couldn't load file" );
double startTime = video.HasAudio() ? 0 : bufChan.GetTime();
double audioStartTime = 0, audioStaleTime = 0,
videoStartTime = 0, videoStaleTime = 0;
int audioStatus = kVideoAudioBuffering, videoStatus =
kVideoVideoBuffering;
Boolean audioPlaying = false;
while( !KeyDown( escape_key ) )
{
short *buffer;
uint size;
double theTime;
//if( video.Done() ) video.Reset(); // I don't have rewind working yet
vi...