Displaying 1 result from an estimated 1 matches for "videostatus".
2010 Aug 15
2
Beginner Hurdles
...p/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
video.Idle(); // buffer data even if no audio or video frames to
display
the...