I need to synchronize audio with another output device.
Can I do this with an interrupt driven heartbeat generated
by the output device. The synchronization only needs to
be visually accurate, in other words I'm not concerned
about microseconds, but I would like to be accurate to 100
milliseconds.

My initial thought is to have my interrupt routine begin a
100ms segment of audio. The next interrupt would stop the
previous segment (if the audio is behind) and then play
the next segment. My "interrupt routine" would probably
be a thread at the application level waiting for my device
to interrupt. I don't think I would need to place this in
my device's DPC.

I've been reading up on the Wavform Audio Interface, is
this the correct area? There must be some support for
this built into the interface to facilitate the usage of a
scroll bar to scan through an audio file. My questions
are, am I looking in the right place and a corrollary, how
flexible is the interface? I don't want to waste research
time going down a false path.

Brian

Re: Audio synchronization by Maxim

Maxim
Fri Jan 09 12:43:15 CST 2004

Maybe synchronize using the user-mode DirectShow MUX filter? Your job will
be just to timestamp the samples.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com


"Brian Stark" <anonymous@discussions.microsoft.com> wrote in message
news:011401c3d6df$832b7420$a401280a@phx.gbl...
> I need to synchronize audio with another output device.
> Can I do this with an interrupt driven heartbeat generated
> by the output device. The synchronization only needs to
> be visually accurate, in other words I'm not concerned
> about microseconds, but I would like to be accurate to 100
> milliseconds.
>
> My initial thought is to have my interrupt routine begin a
> 100ms segment of audio. The next interrupt would stop the
> previous segment (if the audio is behind) and then play
> the next segment. My "interrupt routine" would probably
> be a thread at the application level waiting for my device
> to interrupt. I don't think I would need to place this in
> my device's DPC.
>
> I've been reading up on the Wavform Audio Interface, is
> this the correct area? There must be some support for
> this built into the interface to facilitate the usage of a
> scroll bar to scan through an audio file. My questions
> are, am I looking in the right place and a corrollary, how
> flexible is the interface? I don't want to waste research
> time going down a false path.
>
> Brian