https://bugs.winehq.org/show_bug.cgi?id=39709
Bug ID: 39709 Summary: winmm:mci makes a buzzing sound Product: Wine Version: 1.8-rc2 Hardware: x86 OS: Linux Status: NEW Severity: normal Priority: P2 Component: winmm&mci Assignee: wine-bugs@winehq.org Reporter: fgouget@codeweavers.com Distribution: ---
Running winmm:mci makes a buzzing sound. The first line (of many) where this happens is the line below from test_playWAVE():
/* A second play caused Wine<1.1.33 to hang */ err = mciSendStringA("play mysound from 500 to 220:5:0 wait", NULL, 0, NULL);
This is because the test records sound to tempfile.wav before playing it back. So if the recording levels are set a bit high tempfile.wav can record electrical noise, the buzzing sound, and thus makes noise when playing it back.
This is confirmed by changing the recording level in the KDE mixer prior to running the test: * Setting it all the way down avoids the buzzing sound. * Setting it even moderately high causes the buzzing sound.
Conformance tests are supposed to not make noises when not run in interactive mode so this should be fixed. I see two ways for this: * Set and restore the recording level in test_recordWAVE(). * Create tempfile.wav by hand instead of relying on the output of test_recordWAVE().
https://bugs.winehq.org/show_bug.cgi?id=39709
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |source, testcase