Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

buffer time



!7It is possible to reduce it if you code your own playback application with QT.

!7Fixed shortdelay = 1<<16;
!7QTSPresSetInfo(myPres,kQTSAllStreams,kQTSTargetBufferDuration,&shortdelay);
As kevin has said,this code can reduce the playback buffer time.But I don't know how to get the parameter myPres,I use code as follows:
 ComponentResult c;
 QTSMediaPresentationParams myPres;
 c = QTSMediaGetIndStreamInfo(theMediaHandler, 1,kQTSMediaPresentationInfo,
  &myPres);
 Fixed shortdelay = 1<<16;
 OSErr theErr = QTSPresSetInfo (myPres.presentationID,
  kQTSAllStreams,
  kQTSTargetBufferDurationInfo,
  &shortdelay );

But the return value of QTSPresSetInfo is -50.I don't know the reson.Can anyone help me?
leon




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.