Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 240093

Summary: media-sound/pulseaudio-0.9.12 does not play event sounds from libcanberra
Product: Gentoo Linux Reporter: Thorsten Vollmer <thorsten>
Component: Current packagesAssignee: Gentoo Sound Team <sound>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://www.pulseaudio.org/ticket/378
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 240368    
Bug Blocks:    

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.