http://bugs.winehq.org/show_bug.cgi?id=33732
Bug #: 33732 Summary: Broken non-PCM audio playback in Microsoft Sound Recorder Product: Wine Version: 1.3.25 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: Nachanon_Vetjasit@hotmail.com Classification: Unclassified
I've been using Microsoft Sound Recorder (from Windows XP and below) to play wave files with various codecs. But with recent wine release (wine-1.5.31) when I loaded a wave file with non-PCM codec, play button will be grayed out. Files with PCM codec is still playable though.
How to reproduce (using ordinary PCM wave file): 1. Run Microsoft Sound Recorder (sndrec32.exe; from Windows XP or below) 2. Open some PCM wave file 3. Go to File > Properties 4. Click "Convert Now" 5. Choose A-Law codec with 44100Hz 8-bit Stereo configuration, click "OK" 6. Go back to the main Sound Recorder Window, you'll see that play button was grayed out.
How to reproduce (using existing non-PCM wave file): 1. Run Microsoft Sound Recorder (sndrec32.exe; from Windows XP or below) 2. Open some non-PCM wave file that uses codec WINE supports (like A-Law, U-Law, GSM 6.10, MP3, IMA ADPCM or MS ADPCM) 3. You'll see that play button was grayed out.
Encoding from PCM to non-PCM codec within Sound Recorder itself is still functional, and results could be saved and played with an external player, except for IMA ADPCM (bug #33722), MS ADPCM and MP3 codecs.
Tested codecs: PCM, A-Law, U-Law, IMA-ADPCM, MS-ADPCM, MP3, GSM 6.10 (All of those available in Wine) Wine's Windows version: Windows ME Wine Audio Driver: ALSA 44100Hz 16bit (Full Hardware Acceleration) Wine installed without XInput2, OpenCL, GStreamer and OSS support. System: Debian GNU/Linux 5.0 "Lenny" (i386: Intel Pentium 4 2.66GHz)
http://bugs.winehq.org/show_bug.cgi?id=33732
Nachanon Vetjasit Nachanon_Vetjasit@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Regression SHA1| |901af51ea32f2d192a598808aba | |b2d1b6a940773
--- Comment #1 from Nachanon Vetjasit Nachanon_Vetjasit@hotmail.com 2013-06-06 06:09:12 CDT --- Git bisect test revealed that:
901af51ea32f2d192a598808abab2d1b6a940773 is first bad commit commit 901af51ea32f2d192a598808abab2d1b6a940773 Author: Andrew Eikum aeikum@codeweavers.com Date: Mon Jul 11 08:28:24 2011 -0500
winmm: Remove driver implementation of waveOut*.
:040000 040000 cccb55d925c166ba3838b0179cbdd655a44ba26a 428f760df6efda7a37b4a84f97721523ab72863f M dlls
At this commit, Sound Recorder is not able to play any sound (both PCM and non-PCM; play button was grayed out) and Audio Test performed by winecfg is also failed.
The commit followed (be158e48ad8ee556941bd3f1ff94ca7116680d00), brings the audio support back, Audio Test by winecfg was audible, and Sound Recorder was able to play PCM audio again. But for all non-PCM audio, play button was still grayed out.
http://bugs.winehq.org/show_bug.cgi?id=33732
Nachanon Vetjasit Nachanon_Vetjasit@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression
http://bugs.winehq.org/show_bug.cgi?id=33732
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |aeikum@codeweavers.com
http://bugs.winehq.org/show_bug.cgi?id=33732
Nachanon Vetjasit Nachanon_Vetjasit@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |33740
http://bugs.winehq.org/show_bug.cgi?id=33732
--- Comment #2 from Austin English austinenglish@gmail.com 2013-08-06 21:12:46 CDT --- Please attach a debug log with +tid,+mmdevapi,+winmm,+driver,+midi,+dsound,+dsound3d,+dmusic,+mci,+oss,+alsa,+coreaudio.
http://bugs.winehq.org/show_bug.cgi?id=33732
--- Comment #3 from Nachanon Vetjasit Nachanon_Vetjasit@hotmail.com 2013-11-15 22:36:29 CST --- Created attachment 46541 --> http://bugs.winehq.org/attachment.cgi?id=46541 Logs from Sound Recorder (Windows Me) on WINE 1.7.6
http://bugs.winehq.org/show_bug.cgi?id=33732
--- Comment #4 from Nachanon Vetjasit Nachanon_Vetjasit@hotmail.com 2013-11-15 22:40:02 CST --- attachment #46541 is a debug log from:
WINEDEBUG=+tid,+mmdevapi,+winmm,+driver,+midi,+dsound,+dsound3d,+dmusic,+mci,+oss,+alsa,+coreaudio wine sndrec32.exe chime.ulaw.wav
"chime.ulaw.wav" contains U-Law encoded audio at 44100Hz rate, 8bit, 2 channels, with the length of 6 seconds (529200 bytes total, 264600 bytes per channel).
WINE 1.7.6 (source) on Debian GNU/Linux 5.0 "Lenny" i386 WINE installed without XInput2, OpenCL, CMS, GStreamer and OSS support WINE Windows version: Windows ME WINE Audio driver: winealsa.drv Sound Recorder: sndrec32.exe from Microsoft Windows ME
http://bugs.winehq.org/show_bug.cgi?id=33732
--- Comment #5 from Andrew Eikum aeikum@codeweavers.com 2013-11-19 14:37:52 CST --- Thanks! This should be fixed by the following commit in today's Wine, which will also be included in Wine 1.7.7. Please retest to confirm it's fixed.
commit 06c95af45726674847d12440d904568f59f627bc Author: Andrew Eikum aeikum@codeweavers.com Date: Mon Nov 18 14:23:02 2013 -0600
winmm: Also try MSACM conversions with WAVE_FORMAT_QUERY.
http://bugs.winehq.org/show_bug.cgi?id=33732
Andrew Eikum aeikum@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |06c95af45726674847d12440d90 | |4568f59f627bc Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #6 from Andrew Eikum aeikum@codeweavers.com 2013-12-03 08:53:09 CST --- Two weeks without a negative report. Please reopen the bug if this is still an issue.
http://bugs.winehq.org/show_bug.cgi?id=33732
Nachanon Vetjasit Nachanon_Vetjasit@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|FIXED |
--- Comment #7 from Nachanon Vetjasit Nachanon_Vetjasit@hotmail.com 2013-12-04 10:14:10 CST --- At wine-1.7.6-180-g48ae431 (and wine-1.7.7), non-PCM encoded file seemed to be playable, but there's still a problem:
If I opened a non-PCM encoded file, then (using the same Sound Recorder instance) open a PCM-encoded file and play, WINE will try to use whatever non-PCM codec used on last file to play the newly loaded PCM data; played sound will be garbled. Stopping, then replay will give the correct sound.
This does not apply if the second file opened is also non-PCM. wine-1.3.24 didn't exhibit this problem.
How to reproduce: 1. Run Microsoft Sound Recorder (sndrec32.exe; from Windows XP or below) 2. Open some non-PCM wave file that uses codec WINE supports (like A-Law, U-Law, GSM 6.10, MP3, IMA ADPCM or MS ADPCM) 3. Use File > Open to open some PCM wave file 4. Click the play button, you'll hear that played sound is garbled
WINE: wine-1.7.6-180-g48ae431 and wine-1.7.7 (git) System: Debian GNU/Linux 5.0 "Lenny" i386 WINE installed without XInput2, OpenCL, CMS, GStreamer and OSS support WINE Windows version: Windows ME WINE Audio driver: winealsa.drv Sound Recorder: sndrec32.exe from Microsoft Windows ME
http://bugs.winehq.org/show_bug.cgi?id=33732
--- Comment #8 from Andrew Eikum aeikum@codeweavers.com --- Created attachment 47230 --> http://bugs.winehq.org/attachment.cgi?id=47230 winmm: Clean up ACM stream after query
This patch should fix the bug. I've submitted it to wine-patches.
http://bugs.winehq.org/show_bug.cgi?id=33732
--- Comment #9 from Nachanon Vetjasit Nachanon_Vetjasit@hotmail.com --- I've applied patch from attachment #47230 against wine-1.7.11, now Sound Recorder is playing PCM audio correctly after played non-PCM file.
I'll test again on the next development release when this fix is rolled out, thanks.
WINE 1.7.11 (git) with attachment #47230 on Debian GNU/Linux 5.0 "Lenny" i386 WINE installed without XInput2, OSMesa, OpenCL, CMS, GStreamer and OSS support WINE Windows version: Windows ME WINE Audio driver: winealsa.drv Sound Recorder: sndrec32.exe from Microsoft Windows ME
http://bugs.winehq.org/show_bug.cgi?id=33732
Nachanon Vetjasit Nachanon_Vetjasit@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
--- Comment #10 from Nachanon Vetjasit Nachanon_Vetjasit@hotmail.com --- As of WINE 1.7.14, Sound Recorder plays PCM audio correctly after opened non-PCM file.
Resolving fixed.
WINE 1.7.14 (git) on Debian GNU/Linux 5.0 (i386: Intel Pentium 4 2.66GHz) WINE Windows Version: Windows ME WINE Audio Driver: winealsa.drv WINE installed without XInput2, OSMesa, OpenCL, CMS, GStreamer and OSS support Sound Recorder: sndrec32.exe from Microsoft Windows ME
https://bugs.winehq.org/show_bug.cgi?id=33732
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #11 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.7.16.
https://bugs.winehq.org/show_bug.cgi?id=33732
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |focht@gmx.net Component|-unknown |winmm&mci