Bug 1270488 - iagno: Wrong filepath for soundfiles
iagno: Wrong filepath for soundfiles
Product: Fedora
Classification: Fedora
Component: iagno (Show other bugs)
All Linux
unspecified Severity medium
: ---
: ---
Assigned To: Matthias Clasen
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2015-10-10 06:05 EDT by Adri Verhoef
Modified: 2015-10-10 15:01 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2015-10-10 14:22:21 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Adri Verhoef 2015-10-10 06:05:06 EDT
Description of problem:
Game reports that there is an error when playing the soundfiles:

** (iagno:28579): WARNING **: iagno.vala:510: Error playing file: flip-piece.ogg
filepath should be:/usr/share/iagno/sounds/flip-piece.ogg

** (iagno:28579): WARNING **: iagno.vala:510: Error playing file: gameover.ogg
filepath should be:/usr/share/iagno/sounds/gameover.ogg

Game plays without sound.

Version-Release number of selected component (if applicable):

How reproducible:
In a terminal.

Steps to Reproduce:
1. Start a terminal.
2. Start a game of 'iagno' by typing 'iagno'.
3. Start playing by making moves.

Actual results:
The error messages start appearing after each move when playing.
No sound.

Expected results:
Game without error messages and with sound.
A space between 'should be:' and '/usr/share/...'.

Additional info:
The files are actually there:
-rw-r--r--. 1 root root 7021 Apr 16 21:21 /usr/share/iagno/sounds/flip-piece.ogg
-rw-r--r--. 1 root root 8175 Apr 16 21:21 /usr/share/iagno/sounds/gameover.ogg
Comment 1 Michael Catanzaro 2015-10-10 12:00:47 EDT
Hm, the error message is useless. I've attempted to fix the error message in: https://git.gnome.org/browse/iagno/commit/?id=1c9c2a8ff857c7b8a2b03ed5e2c60d6489c4087c

Please install iagno-3.16.1-2.fc22.x86_64.rpm from here to get the improved error message: https://people.gnome.org/~mcatanzaro/iagno-sound-issue/

Then try it out and report the error message you get, so we have a chance to figure out what's wrong. Thanks!
Comment 2 Adri Verhoef 2015-10-10 12:40:10 EDT
I did as you suggested and installed iagno-3.16.1-2.fc22.x86_64.rpm from https://people.gnome.org/~mcatanzaro/iagno-sound-issue/.  Then I played a game of iagno and this is what I got:

** (iagno:28852): WARNING **: iagno.vala:510: Error playing /usr/share/iagno/sounds/flip-piece.ogg: Sound disabled

** (iagno:28852): WARNING **: iagno.vala:510: Error playing /usr/share/iagno/sounds/flip-piece.ogg: Sound disabled

I thought that it might be due to an already playing stream, so I quit that stream, checked that nothing else was playing and started another game of iagno.  Alas, the same thing happened:

** (iagno:28871): WARNING **: iagno.vala:510: Error playing /usr/share/iagno/sounds/flip-piece.ogg: Sound disabled

** (iagno:28871): WARNING **: iagno.vala:510: Error playing /usr/share/iagno/sounds/gameover.ogg: Sound disabled
Comment 3 Adri Verhoef 2015-10-10 13:40:32 EDT
Searching for "Sound disabled" I found this page http://ubuntuforums.org/showthread.php?t=1502828 where it says: "if the user has disabled system alert sounds (System->Preferences->Volume Control, Sound theme: No theme), you'll get: [..] Sound disabled".

Then I found https://bugzilla.redhat.com/show_bug.cgi?id=915121#c6 which says that if you have system sounds disabled, it'll say "Sound disabled".  That's why this happens:

$ canberra-gtk-play -f /usr/share/iagno/sounds/flip-piece.ogg
Failed to play sound: Sound disabled
Comment 4 Michael Catanzaro 2015-10-10 14:22:21 EDT
OK, great. So it sounds like this is not a bug (besides the poor error message), right? If you still think there is a bug, I can reassign this to libcanberra.
Comment 5 Adri Verhoef 2015-10-10 15:01:03 EDT
Thanks for improving the error message, Michael.

The way to enable the system sounds in my XFCE desktop environment is:
Settings Manager -> Appearance -> Settings -> enable "Enable event sounds" :-)

After enabling the system sounds the error messages don't show up.  Great work!

Note You need to log in before you can comment on or make changes to this bug.