Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 240093 - media-sound/pulseaudio-0.9.12 does not play event sounds from libcanberra
Summary: media-sound/pulseaudio-0.9.12 does not play event sounds from libcanberra
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Sound Team
URL: http://www.pulseaudio.org/ticket/378
Whiteboard:
Keywords:
Depends on: 240368
Blocks:
  Show dependency tree
 
Reported: 2008-10-05 19:53 UTC by Thorsten Vollmer
Modified: 2008-10-10 22:26 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thorsten Vollmer 2008-10-05 19:53:56 UTC
media-sound/pulseaudio-0.9.12 does not play event sounds from libcanberra if the event ID contains a hyphen. This is the case for most events.

You can reproduce the problem with canberra-gtk-play --id=desktop-login (assuming that this sound is available)

This patch solves the problem:
diff -ur a/src/pulsecore/namereg.c b/src/pulsecore/namereg.c
--- a/src/pulsecore/namereg.c	2008-08-19 23:25:04.000000000 +0200
+++ b/src/pulsecore/namereg.c	2008-10-04 02:08:07.000000000 +0200
@@ -51,6 +51,7 @@
         (c >= 'A' && c <= 'Z') ||
         (c >= '0' && c <= '9') ||
         c == '.' ||
+        c == '-' ||
         c == '_';
 }

The corresponding upstream commit is c0815deb4add5ae4598de7c2c0589d1f5dc1c641: allow - in sample names

A revision bump might be appropriate. Thanks for your consideration.
Comment 1 Thorsten Vollmer 2008-10-06 02:55:16 UTC
A new version of pulseaudio was released faster than expected. This bug is fixed in pulseaudio-0.9.13.
Comment 2 Thorsten Vollmer 2008-10-10 22:26:43 UTC
Pulseaudio-0.9.13 was added to portage. Closing.