Bundle fallback ringback and busy tone audio files

Most desktop Linux sound themes lack telephony events like
phone-outgoing-calling and phone-outgoing-busy, causing gsound
playback to fail silently. Bundle OGG Vorbis fallback files and
pass GSOUND_ATTR_MEDIA_FILENAME alongside GSOUND_ATTR_EVENT_ID
so libcanberra falls back to the bundled audio when the theme
event is not found.
This commit is contained in:
Kevin Bataille
2026-02-08 14:45:29 +01:00
parent 1f9effa868
commit 4d46cdb029
5 changed files with 31 additions and 0 deletions

View File

@@ -78,6 +78,8 @@ config_data.set_quoted('APP_DATA_NAME', calls_name)
config_data.set_quoted('GETTEXT_PACKAGE', calls_name)
config_data.set_quoted('LOCALEDIR', full_localedir)
config_data.set_quoted('PLUGIN_LIBDIR', full_calls_plugin_libdir)
config_data.set_quoted('CALLS_SOUNDS_DIR',
join_paths(prefix, get_option('datadir'), calls_name, 'sounds'))
config_data.set_quoted('PACKAGE_URL', calls_homepage)
config_data.set_quoted('PACKAGE_VERSION', calls_version)
config_data.set('PACKAGE_URL_RAW', calls_homepage)