Video/audio sync | developer.brewmp.com Video/audio sync | developer.brewmp.com

Developer

Video/audio sync

Forums:

Hello people!

Here I am again with another IMedia question...

I'm trying to synchronize sound played with IMedia object with video rendered using IDIB. Would be nice to be able to know how many millisecs of sound has been played so i can render the correct frame. I found two possible ways to do this with IMEDIA_SetMediaParm or IMEDIA_GetMediaParm:

1. MM_PARM_POS; returns EUNSUPPORTED, may be because of me using an ISource as soundsource.

2. MM_PARM_AUDIOSYNC; returns EUNSUPPORTED, sad because else i would have received nice stats in the media callback.

I saw in a thread that 15/3 2006 the MM_PARM_AUDIOSYNC was not yet implemented, in simulator as well as device. Is it even possible to get video and audio in sync without using video/audio formats that the IMedia recognizes and synch internally?

Found a couple of slides on this, I think one was saying that this feature was not yet implemented. However, that slide was from 2004.

Best regards
Daniel