I played an mp3 and recorded the speakers at the same time (with my mic in front of the speaker). I then opened up the original and recorded files in audacity found a 10 ms delay on my system.
Is there any way to predict or measure that delay at run-time? I need to find a way to determine this delay that works for most systems.
Also, should there be any drift? Or will they both play and record at the exact same samples per second?
We’re using DSOUND output, FMOD_SOFTWARE sounds, BTW.
- thechosenone asked 12 years ago
No there is no way to know how long it takes to get to the speakers besides what the buffersize of the mixer is, but even hardware voices have latency and that stuff is hidden in the driver.
Also recording and playing at the same time is not an accurate method as the recording system would have latency of its own.
Actually, I think what I’m trying to measure is how long it takes for a sound to get to the speakers. I don’t think it matters what happens with the recorded signal.
Is there a way to predict or measure it at runtime?
The delay varies widely between computers. It also seems to vary for a given computer. Does the delay depend on how far into its buffer the mixer happens to be?
- thechosenone answered 12 years ago
Please login first to submit.