Bug 484503 - KAlarm play audio feature stopped working
Summary: KAlarm play audio feature stopped working
Status: RESOLVED FIXED
Alias: None
Product: kalarm
Classification: Applications
Component: sound (show other bugs)
Version: 3.8.0
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: David Jarvie
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-26 04:39 UTC by LTS20050703
Modified: 2024-03-27 17:40 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 24.02.2


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description LTS20050703 2024-03-26 04:39:54 UTC
SUMMARY
KAlarm play audio feature stopped working. 

STEPS TO REPRODUCE
1. Create a new audio alarm
2. Select the audio file (in my case the audio file is an .opus file, stored in ~/Music)
3. Press "try"

OBSERVED RESULT
Nothing plays.

EXPECTED RESULT
The audio file plays

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.0.0 
Qt Version: 6.6.2

ADDITIONAL INFORMATION
KDE Neon 6.0
Graphics Platform: Wayland
Comment 1 David Jarvie 2024-03-26 22:30:17 UTC
The opus file format doesn't seem to be supported by the audio library which KAlarm now uses (libcanberra). This library has replaced the use of Phonon by KAlarm because the way that KAlarm needs to use it (multithreaded) made Phonon unreliable and the source of quite a few bugs.

There should be an error message when an audio file can't be played - this needs to be added.

The only solution for now for playing an opus file is to convert it to another format for KAlarm to use.
Comment 2 David Jarvie 2024-03-27 17:40:29 UTC
An error message is now displayed when something goes wrong with playing a file. Because user visible (translatable) strings are frozen for KDE Gear 24.02 releases, the message if the audio format is unsupported has had to be set to "file or data corrupt". This message will be improved to mention unsupported format in the KDE Gear 24.05 release, when user visible strings are allowed to be changed.

Commit https://invent.kde.org/pim/kalarm/-/commit/768ed33a7e53e19d192885df985532900d815909 in 24.02 branch.