http://bugs.winehq.org/show_bug.cgi?id=21277
Summary: python's test_winsound test fails Product: Wine Version: 1.1.35 Platform: x86 URL: http://www.python.org OS/Version: Linux Status: NEW Keywords: download, source, testcase Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: austinenglish@gmail.com
Created an attachment (id=25588) --> (http://bugs.winehq.org/attachment.cgi?id=25588) test output
Install python and run: wine 'c:\Python31\python.exe' -m test.test_winsound
====================================================================== ERROR: test_alias_asterisk (__main__.PlaySoundTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Python31\lib\test\test_winsound.py", line 89, in test_alias_asterisk winsound.PlaySound('SystemAsterisk', winsound.SND_ALIAS) RuntimeError: Failed to play sound
Full output attached.
http://bugs.winehq.org/show_bug.cgi?id=21277
--- Comment #1 from Austin English austinenglish@gmail.com 2010-01-06 16:10:23 --- Created an attachment (id=25589) --> (http://bugs.winehq.org/attachment.cgi?id=25589) test file
http://bugs.winehq.org/show_bug.cgi?id=21277
--- Comment #2 from Austin English austinenglish@gmail.com 2010-01-06 18:30:12 --- Also fails on my home machine.
http://bugs.winehq.org/show_bug.cgi?id=21277
Jörg Höhle hoehle@users.sourceforge.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hoehle@users.sourceforge.ne | |t
--- Comment #3 from Jörg Höhle hoehle@users.sourceforge.net 2010-04-27 03:29:37 --- My "make MCI_SOUND work" patch contains the following comment:
Wine produces no sound unless win.ini or the registry defines wave files, e.g. it contains something like [Sounds] Default=/usr/share/sounds/question.wav SystemExclamation=/usr/share/sounds/error.wav
You may want to check whether the test still fails with such a definition.
IIRC, Wine's playsound return code will not indicate success unless a sound was played. On MS, I've seen machines equipped with sound return success from the MCI_Sound command yet not sound was heard.
My patch solely correctly forwards MCI_SOUND to playsound. It does not provide sound files. I've verified that with the above definition, Wine emits the sound indicated by the SND_ALIAS flag, which my patch uses.
Sadly, I found no single /usr/.... *.wav file that would be common to all Suse or even Ubuntu systems I tried: Wine cannot hard-code some default path.
That should be added to the documentation.
http://bugs.winehq.org/show_bug.cgi?id=21277
--- Comment #4 from Austin English austinenglish@gmail.com 2010-04-27 11:13:47 --- (In reply to comment #3)
My "make MCI_SOUND work" patch contains the following comment:
Wine produces no sound unless win.ini or the registry defines wave files, e.g. it contains something like [Sounds] Default=/usr/share/sounds/question.wav SystemExclamation=/usr/share/sounds/error.wav
Will test this afternoon.
You may want to check whether the test still fails with such a definition.
IIRC, Wine's playsound return code will not indicate success unless a sound was played. On MS, I've seen machines equipped with sound return success from the MCI_Sound command yet not sound was heard.
My patch solely correctly forwards MCI_SOUND to playsound. It does not provide sound files. I've verified that with the above definition, Wine emits the sound indicated by the SND_ALIAS flag, which my patch uses.
Sadly, I found no single /usr/.... *.wav file that would be common to all Suse or even Ubuntu systems I tried: Wine cannot hard-code some default path.
It shouldn't be too hard to find (or make) a LGPL .wav file that would fit the bill, and include it in wine itself...
http://bugs.winehq.org/show_bug.cgi?id=21277
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dank@kegel.com
--- Comment #5 from Dan Kegel dank@kegel.com 2010-08-04 18:30:49 --- You can reproduce a similar problem by creating foo.c containing
#include <windows.h> int main(int argc, char **argv) { PlaySound(SND_ALIAS_SYSTEMDEFAULT, NULL, SND_ALIAS_ID); }
and then doing i686-pc-mingw32-gcc foo.c -lwinmm or winegcc foo.c -lwinmm and running the resulting binary. No sound comes out. Running with WINEDEBUG=+winmm shows
warn:winmm:get_mmioFromProfile can't find SystemSound=L"SystemDefault" !
Should we change description to "Wine needs to provide system sound .wav files?"
http://bugs.winehq.org/show_bug.cgi?id=21277
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|python's test_winsound test |Wine needs to provide |fails |system sound .wav files
--- Comment #6 from Austin English austinenglish@gmail.com 2010-08-05 05:23:39 --- (In reply to comment #5)
Should we change description to "Wine needs to provide system sound .wav files?"
Sounds reasonable, and relatively easy to do.
http://bugs.winehq.org/show_bug.cgi?id=21277
Damjan Jovanovic damjan.jov@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |damjan.jov@gmail.com
--- Comment #7 from Damjan Jovanovic damjan.jov@gmail.com 2010-11-24 03:30:23 CST --- Maybe Wine should use the freedesktop.org sound theme files instead of making up its own: http://www.freedesktop.org/wiki/Specifications/sound-theme-spec
AFAICT only Gnome seems to support this at the moment.
http://bugs.winehq.org/show_bug.cgi?id=21277
--- Comment #8 from Dan Kegel dank@kegel.com 2010-11-24 07:03:10 CST --- If we find sounds in /usr/share/sounds that follow the xdg or kde standards, and meet our needs, sure, let's use them...
http://bugs.winehq.org/show_bug.cgi?id=21277
Jörg Höhle hoehle@users.sourceforge.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |enhancement
http://bugs.winehq.org/show_bug.cgi?id=21277
Jerome Leclanche adys.wh@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |adys.wh@gmail.com Resolution| |DUPLICATE
--- Comment #9 from Jerome Leclanche adys.wh@gmail.com 2012-01-23 11:55:56 CST --- Dupe of #21035, per Joerg
*** This bug has been marked as a duplicate of bug 21035 ***
http://bugs.winehq.org/show_bug.cgi?id=21277
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #10 from Austin English austinenglish@gmail.com 2012-01-23 19:46:15 CST --- Closing DUPLICATE.