http://bugs.winehq.org/show_bug.cgi?id=29511
Bug #: 29511 Summary: IrfanView fails to play a specific WAV file Product: Wine Version: 1.3.36 Platform: x86-64 URL: http://www.irfanview.com/main_download_engl.htm OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winmm&mci AssignedTo: wine-bugs@winehq.org ReportedBy: RandomAccountName@mail.com CC: hoehle@users.sourceforge.net Classification: Unclassified Regression SHA1: 23060afdcd0f34cf25a5e855ce06242f01ab3048
Created attachment 38218 --> http://bugs.winehq.org/attachment.cgi?id=38218 Terminal output
Most of the WAV files I've tried to play in IrfanView thus far have exhibited the behavior described in bug 19496: IrfanView displays an error four times but plays the file anyway. However, I have one WAV file (not freely downloadable) which fails to play at all (it also shows six errors instead of four).
I found that this particular file could be played in 1.1.32 and earlier, though it would be cut off after a few seconds. For a brief time between releases (e.g. wine-1.1.32-321-g1c7c406) the entire file was played successfully. There were only five errors displayed when this worked.
Anyway, this is the result of regression testing:
23060afdcd0f34cf25a5e855ce06242f01ab3048 is the first bad commit commit 23060afdcd0f34cf25a5e855ce06242f01ab3048 Author: Jörg Höhle hoehle@users.sourceforge.net Date: Wed Oct 21 17:44:58 2009 +0200
mciwave: Play/Record return MCIERR_OUTOFRANGE as required.
:040000 040000 e24c8f7320fb7a293aaafc6ffc0a65f07806d6e0 ce50f70f14ea28635dbc16603a11c6b9ff48b7d3 M dlls
git checkout 23060afdcd0f34cf25a5e855ce06242f01ab3048 -> file fails to play git checkout 23060afdcd0f34cf25a5e855ce06242f01ab3048^ -> file is played successfully
http://bugs.winehq.org/show_bug.cgi?id=29511
A Wine user RandomAccountName@mail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression
http://bugs.winehq.org/show_bug.cgi?id=29511
--- Comment #1 from Jörg Höhle hoehle@users.sourceforge.net 2012-01-02 07:20:08 CST --- Please update bug #19496: still present in wine-1.3.36? Does it happen with any version of IrfanView? Which ones did you check? Do you have or know of tools that check the validity of that particular .wav file? What codec does it use? Does it open in native w2k/xp/w7? Please attach an +mci,+mciwave,+msacm,+driver log.
http://bugs.winehq.org/show_bug.cgi?id=29511
--- Comment #2 from A Wine user RandomAccountName@mail.com 2012-01-02 07:36:47 CST --- Created attachment 38220 --> http://bugs.winehq.org/attachment.cgi?id=38220 +mci,+mciwave,+msacm,+driver log
Hi Jörg,
(In reply to comment #1)
Please update bug #19496: still present in wine-1.3.36? Does it happen with any version of IrfanView? Which ones did you check?
Okay, will do.
Do you have or know of tools that check the validity of that particular .wav file?
No, I don't think so.
What codec does it use?
VLC says:
codec: araw channels: stereo sample rate: 44100 Hz Bits per sample: 16
file command says:
RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, stereo 44100 Hz
Does it open in native w2k/xp/w7?
Yes, IrfanView is able to open it on XP. I can test Windows 7 too if it would be useful, but I don't have any Win2k system.
Please attach an +mci,+mciwave,+msacm,+driver log.
Done.
http://bugs.winehq.org/show_bug.cgi?id=29511
--- Comment #3 from Jörg Höhle hoehle@users.sourceforge.net 2012-01-02 11:43:55 CST --- trace:mciwave:WAVE_mciReadFmt Chunk Found ckid=data fccType= cksize=025D4FC0 trace:mciwave:WAVE_ConvertByteToTimeFormat val=39669696=0x025d4fc0 [tf=0] => ret=224885=0x00036e75 trace:mciwave:WAVE_ConvertTimeFormatToByte val=224885=0x00036e75 [tf=0] => ret=39669714 This is a rounding issue. The file has 39669696 bytes that play for 224.88489... seconds. The length is rounded to 224.885s or 39669714 bytes and that is larger.
How does native round? Using my MCI shell from bug #20232, comment #10: open Z:\media\tmpfs\staff.wav alias x set x time format samples status x length 9917424 set x time format ms status x length 224885
http://bugs.winehq.org/show_bug.cgi?id=29511
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download
http://bugs.winehq.org/show_bug.cgi?id=29511
--- Comment #4 from A Wine user RandomAccountName@mail.com 2012-01-03 04:36:07 CST --- Looks like it's the same on XP:
set x time format samples mci.c:188: command: set x time format samples status x length mci.c:188: command: status x length mci.c:193: Response: 9917424 set x time format ms mci.c:188: command: set x time format ms status x length mci.c:188: command: status x length mci.c:193: Response: 224885
http://bugs.winehq.org/show_bug.cgi?id=29511
--- Comment #5 from A Wine user RandomAccountName@mail.com 2012-01-07 03:13:09 CST --- Some of the BGM files included with the demo for Chantelise seem to exhibit the same behavior:
http://www.carpefulgur.com/chantelise/CE_demo.exe (243MB download)
The file at <program directory>/bgm/town.wav can be opened with IrfanView in 1.1.32, but gets cut off. Since 1.1.33, it fails to open at all, with an added "out of range" error. This is consistent with the originally tested file.
http://bugs.winehq.org/show_bug.cgi?id=29511
Jörg Höhle hoehle@users.sourceforge.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|1.3.36 |1.1.33 Target Milestone|--- |1.4.0
http://bugs.winehq.org/show_bug.cgi?id=29511
--- Comment #6 from Jörg Höhle hoehle@users.sourceforge.net 2012-01-31 05:59:04 CST --- Created attachment 38620 --> http://bugs.winehq.org/attachment.cgi?id=38620 mciwave patch to check for the end position
Please test this patch and report back.
http://bugs.winehq.org/show_bug.cgi?id=29511
A Wine user RandomAccountName@mail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch
--- Comment #7 from A Wine user RandomAccountName@mail.com 2012-01-31 06:33:22 CST --- (In reply to comment #6)
Please test this patch and report back.
The staff.wav file is played back perfectly with this patch. I tested a few other WAV files as well without encountering any issues. Thanks for taking a look!
http://bugs.winehq.org/show_bug.cgi?id=29511
A Wine user RandomAccountName@mail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |bdf757838988148a10f98e660b9 | |ccede5f5e7d09 Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #8 from A Wine user RandomAccountName@mail.com 2012-02-01 04:17:43 CST --- Fixed by:
http://source.winehq.org/git/wine.git/commit/bdf757838988148a10f98e660b9cced...
http://bugs.winehq.org/show_bug.cgi?id=29511
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #9 from Alexandre Julliard julliard@winehq.org 2012-02-02 13:37:29 CST --- Closing bugs fixed in 1.4-rc2.