[wdmaudiodev] Re: Audio Video Sincronization

  • From: Tim Roberts <timr@xxxxxxxxx>
  • To: wdmaudiodev@xxxxxxxxxxxxx
  • Date: Wed, 01 Feb 2006 09:28:06 -0800

Bipin Mistry wrote:

>  
> This would have helped me if I was recording the Audio...


Why does that make a difference?  You're going to have to run the whole
file through whatever stretching algorithm you choose.  Robert's
suggestion has some merit; inserting a few bytes of silence when the
audio is quiet might be an easy solution, if the audio generally has
quiet spots.

Just slowing down an audio file is not difficult.  For a 3% stretch, for
example, you can just duplicate every 33rd sample in the file.  The
downside is that you'll hear the pitch go down.  A true audio stretching
algorithm that maintains the pitch is very hard, like master's thesis
hard.  Google will serve you better than this list.

> But here seen is I am using 3rd party dll provided by end user which
> gives me audio files as output... (no source code or any document on
> architeacture for this dll is available)
>  
> So I have to play my game on the output files generated for every user
> by 3rd party dll.
> And that too once 3rd party dll has completed his task.


So, you're saying that these audio files were not generated from the
same source as the video you're syncing to?  What kind of audio files
are they?  If it is music, you could just start over from the
beginning.  If it's a voice narration or a sound effect, you could just
insert a bit of silence at the beginning and end.

-- 
Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.

******************

WDMAUDIODEV addresses:
Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx
Subscribe:    mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe
Unsubscribe:  mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe
Moderator:    mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx

URL to WDMAUDIODEV page:
http://www.wdmaudiodev.com/

Other related posts: