After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 374073 - Drop esound in favour of a more robust desktop sound event architecture
Drop esound in favour of a more robust desktop sound event architecture
Status: RESOLVED NOTABUG
Product: esound
Classification: Deprecated
Component: general
0.2.x
Other All
: Normal enhancement
: ---
Assigned To: Esound Maintainers
Esound Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-11-11 23:16 UTC by Patryk Zawadzki
Modified: 2006-11-13 21:16 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description Patryk Zawadzki 2006-11-11 23:16:29 UTC
Create a new DBus-driven desktop sound event daemon. Not for playing media streams, just to play the usual desktop sounds like "login," "logout," "IM user is online" and such.

As I see it, the daemon should make use of a directory tree similar to /usr/share/themes, where there are "sound themes" and each theme is split into a number of subdirectories like "apps," "actions" and similar.

There should be a base theme like there is "hicolor" for GTK that allows apps to provide their own generic sound events. Each theme could override these sounds by providing a file with identical base name in its own directory.

Similar caching techniques could be used as are currently in use for GTK themes.

The DBus interface should provide a way to play a generic sound event by name (without the extension, the daemon should be able to find a matching file and use gstreamer to play it). This would allow for easy handling of non-blocking event sounds in virtually all desktop applications without relying on forking to  execute "aplay" or "esdplay" as some do currently.

Additionally all sound should have a priority attribute, one of "notice," "normal," "warning," "critical." Ideally the sound applet should be able to talk to the daemon and tell it to suppress all sound below a chosen threshold so I can opt to only hear critical events while watching a movie in totem.

If you talk this over with freedesktop guys, this can provide perfect interoperability between GNOME and KDE apps in the terms of sound event handling.

Hope above is clear enough. Not sure where to post this so I just put it under esound. Would love to hear your opinion on this.
Comment 1 Olav Vitters 2006-11-11 23:22:24 UTC
Bugzilla is not suited for desktop-wide discussions. Mailing lists are much better suited for that. Anyway, dupe of the existing esd-killing bug.

*** This bug has been marked as a duplicate of 82340 ***
Comment 2 Patryk Zawadzki 2006-11-11 23:35:27 UTC
Not quite a dupe, simply switching existing apps to use gstreamer directly is not a good idea. Gstreamer is too lowlevel for easy sound event handling. Each app needs to maintain a pipe and a player object for each sound. This makes playing several files concurrently a major pain in the ass to maintain. Simply asking another dameon to handle the playback would be much easier and would allow lots of apps to drop their sound playing hacks in favour of a common API.
Comment 3 Priit Laes (IRC: plaes) 2006-11-13 15:03:48 UTC
Wouldn't daemon would be appropriate place for this.
Comment 4 David Schleef 2006-11-13 21:16:01 UTC
This is not a bug in esound, and should not be discussed here.  Also, enhancement bugs are not accepted for esound.  Marking as NOTABUG.