Play sound on message

Bug #786989 reported by Pavlo Bohmat on 2011-05-23
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
LinuxDC++
Wishlist
Unassigned

Bug Description

Not working the sound notification when receiving a personal message.
When will be able to change chat font color and size? When will sound an alert (via aplay)? Pls, fix it.

LinuxDC++ version: 1.2.0~pre1~bzr
linuxdcpp_1.1.0+bzr422-1ppa1~natty1_amd64.deb

Steven Sheehy (steven-sheehy) wrote :

True, we need to add sound functionality. We used to have beep sounds on messages but it had to be disabled for some reason in one of the core upgrades. We used the beep functionality from GDK, but GDK is planned for deprecation soon.

GTK+ also does not provide the possibility to play custom sounds. Therefore, we would have to use some commandline utility like aplay (not sure how standard this is?) as you said or some library (gstreamer?) to play. The library option would require a plugin so as to not add build dependencies.

As far as font changes that's already covered in bug #318595.

Changed in linuxdcpp:
importance: Undecided → Wishlist
status: New → Confirmed
tags: added: preferences sound ui
summary: - sounds
+ Play sound on message
Razzloss (razzloss) wrote :

0.698->0.705 upgrade changed the 'sound on X' from simple bool value to a string, allowing the sound to be defined by the user. So instead of abusing the string field (by storing "TRUE"/"FALSE") I dropped the sound support for now. As there isn't an easy way to play custom sound files via GTK+.

On a related note I have (or at least had) a branch which restores the sound support, but adds libcanberra as a dependency. I believe the sound part of it is finished and functional, but I felt like the sounds should be customizable (instead of just using default XDG sounds) and that would mean changes to settingsdialog. Something which I didn't feel like doing at that time so I stopped messing around with that branch.

--RZ

Pavlo Bohmat (bohm) wrote :

In what branch of expected sound notifications?

See how it is implemented in EiskaltDC + + (gtk): 2.2.3 (8eafed5)

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers