Please write audio tests (was: Playing ULAW sample correctly?)

David Laight david at l8s.co.uk
Tue Nov 3 12:08:18 CST 2009


On Tue, Nov 03, 2009 at 07:48:29PM +0200, Damjan Jovanovic wrote:
> On Tue, Nov 3, 2009 at 3:33 PM,  <Joerg-Cyril.Hoehle at t-systems.com> wrote:
> >
> > Wine would benefit from a test in msacm32/tests/ sketched as follows:
> > 0. choose some base frequency like 11025Hz;
> > 1. generate a PCM sine wave tone (like winmm/tests/wave.c);
> > 2. convert it to ?-law via the ACM functions;
> > 3. play it via winmm if wine_interactive is set (like in wave.c)
> > 4. convert it back and apply some delta function to tell if it's
> > ? close enough to the original sine,
> > ? i.e. mechanically verify that the round-trip worked.
> 
> You'd need to verify the energy in the discrete Fourier transform of
> the signal at the frequency you're testing for, is say 90% of the
> total signal energy.

Or use a goertzel detector for the transmitted tone(s).
It is also quite simple to generate sine waves without any trig.

	David

-- 
David Laight: david at l8s.co.uk



More information about the wine-devel mailing list