0
0

I just implemented video playback in my engine using VFW to decode AVI frames. It works pretty well, but now I’m wondering how hard it will be to get properly synchronized audio playback with FMod. VFW handles the work of decoding audio for me, as far as I know, but I’m not sure how to handle the timing and synchronization. Do you have any idea how hard it would be for me to properly feed FMod enough audio data in advance to prevent skips, and how hard it would be to get FMod to play the audio in sync with the video (since FMod has a certain amount of latency between when something gets mixed and when it actually reaches the speakers)?

I use FMod 3 right now, but I intend on porting to FMod EX now that it’s out, so I’d like to know in particular how this would be done with FMod Ex. AVI audio and porting to FMod EX at about the same place on my priority list :)

  • You must to post comments
0
0

[quote="brett":18lc1p0o]The only thing i can think of off the top of my head is to create a user created stream (see example) and you decode and feed the fmod stream data as it asks for it. This way the audio drives the movie, and you can time the movie playback from the audio.
This is a common method, because audio must be a fixed time stream (ie 44100 samples per second) and can’t drop frames like video can.[/quote:18lc1p0o]Ahh, I didn’t know that I could just wait for the mixer to ask for the audio. I thought I had to feed it in advance and hope it didn’t run out… great. That should be pretty easy to do, then.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.