The type of audio used in the application. #662
-
|
The next Image is in the "notifications-capability.vala" file I want to know how the sound are played? and what the type of it [ mp3, wav, etc..]. If there are video or something that explain it I will be thankful. And may be I will try to contribute so anyone can add a mp3 audio file to the notfication. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
I tried to add wav audio and it works well. But I want to understand how it works maybe I can then edit the code so anyone can add mp3 audio file directly. |
Beta Was this translation helpful? Give feedback.
-
|
In |
Beta Was this translation helpful? Give feedback.

Hi :)
The sounds are handled in plugins/sounds/sounds-plugin.vala, the
SoundManagerclass.For ticking sound it uses gstreamer. For notifications it uses gsound / libcanberra. libcanberra is more lightweight and supports caching + it follow system rules for notification sounds (volume / mute).
The list of supported types are hardcoded in plugins/sounds/sound-player.vala ,
CanberraPlayer.get_supported_mime_types().It could be that .mp3 is now supported.