[openbeos] Re: Solution to MediaKit sync issue resolved

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: openbeos@xxxxxxxxxxxxx
  • Date: Wed, 30 Jun 2004 04:00:16 +0200 CEST

"Solaja, Zenja" <solaja@xxxxxxxxxx> wrote:
> It seems that the issue is with decoding a BMediaTrack, and its 
> method
> DecodedFormat().  When you perform a SeekToTime(bigtime_t), it 
> misjumps by a
> factor of 1024/1000.  Also, the DecodReadFrame or ReadChunk() members 
> of
> BMediaTrack will as a consequence read 1024/1000 bytes when passing 
> it to
> BSoundPlayer. To resolve audio sync issues, all you need to do is 
> manually
> adjust bigtime_t when seeking by:
> 
> time *= 1000/1024;
> SeekToTime(time);

How can you know that the current media file has sync issues?
I've several files that play perfectly with the BeOS Media Player; 
adapting the seek time for them doesn't sound like a good idea. Also, 
you don't seek everytime, and the streams can get asynchronous by 
viewing them only.

Bye,
   Axel.


Other related posts: