[music-dsp] Graphics and sound sync

Ross Bencina rbencina at iprimus.com.au
Fri May 7 17:08:11 EDT 2004


Just buffer the data (VUlevels) and draw it at the time you know the Audio
will play out. This requires you to know what the audio latency is.

see:
PortAudio and Media Syncronization
http://www.portaudio.com/docs/portaudio_sync_acmc2003.pdf

Ross.

----- Original Message ----- 
From: "Andrew Greenwood" <lists at silverblade.co.uk>
To: "a list for musical digital signal processing"
<music-dsp at shoko.calarts.edu>
Sent: Saturday, May 08, 2004 6:52 AM
Subject: [music-dsp] Graphics and sound sync


> How would you synchronize graphics and sound, for example in the case of a
> level meter?
>
> It should be fairly simple in an audio player, but what about for a
> near-realtime performance program?
>
> As graphics are updated immediately while sound isn't, how do you
compensate
> for the delay? Mainly, how do you get the graphics to animate at the
correct
> time?
>
> If that makes any sense...
>
> dupswapdrop -- the music-dsp mailing list and website:
> subscription info, FAQ, source code archive, list archive, book reviews,
dsp links
> http://shoko.calarts.edu/musicdsp
> http://ceait.calarts.edu/mailman/listinfo/music-dsp




More information about the music-dsp mailing list