Matching input and output signals
Matching input and output signals
- Subject: Matching input and output signals
- From: Chris Liscio <email@hidden>
- Date: Mon, 20 Sep 2004 15:42:15 -0400
Hello all,
I'm working on an application that sends an excitation signal through
an output device, and records the result of that excitation on the
input device. I would like to know what the best method is for
ensuring that my output sample is lined up exactly with the input
sample, so that I may compare the two. Note that by "lined up" I mean
that if the excitation goes out at t=0, I want to know the frame where
I'll find the t=0 sample on the input.
In some devices that will be tested by my software (a loudspeaker, or
a mixing room), there may be a sizeable delay between the sound
exiting the output device, and the sound hitting the receiving device.
This is fine, since I would like to capture this delay accurately
anyway. Thus, I'm not simply looking for a solution that involves
setting a threshold for the input device, and waiting to be triggered
on the input side.
My method for doing so right now involves querying the latency (in
frames -- kAudioDevicePropertyLatency) of the input and output
devices, summing them together, and using that value as an offset into
the input sample stream to match them up. I'm not convinced that this
is the best method for ensuring that the two streams match up.
Does anyone out there know of a better way to do the above? Also, if
my current method is correct, please let me know so that I can sleep
better at night. ;)
Any help would be greatly appreciated.
Cheers,
Chris
http://www.supermegaultragroovy.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden