Bug 484851 - Kalarm fails to play any audio
Summary: Kalarm fails to play any audio
Status: RESOLVED FIXED
Alias: None
Product: kalarm
Classification: Applications
Component: sound (show other bugs)
Version: 3.8.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: David Jarvie
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-01 06:45 UTC by Arialo
Modified: 2024-07-09 19:37 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 24.08
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arialo 2024-04-01 06:45:27 UTC
SUMMARY
Kalarm does not play any sounds with any audio files. I cannot reproduce this on any other system with the same audio files.

STEPS TO REPRODUCE
1. Open kalarm
2. Open an alarm and hit "try", alternatively the alarm will not play naturally either.

OBSERVED RESULT
Kalarm plays no sound and if observed in the terminal it gives the output: org.kde.pim.kalarm: AudioPlayer::play: Failed to play sound with canberra: File or data corrupt

EXPECTED RESULT
Kalarm plays the audio file with no issue

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch linux, kernel 6.8.2-arch2-1
(available in About System)
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION
Kalarm works in a manjaro VM with the same audio file and alarm.ics file.
Comment 1 David Jarvie 2024-04-01 20:31:23 UTC
What audio format are the files which you have tested? 

Is it the same version of KAlarm in the Manjaro VM?
Comment 2 TraceyC 2024-07-02 17:58:13 UTC
I am not able to reproduce the problem in KDE Neon, KAlarm 3.8.1.2
I created a new alarm and used "/usr/share/sounds/oxygen/stereo/alarm-clock-elapsed.ogg"
When I click Try I hear the sound

Can you attach the sound file you're trying to use to this bug report?
Comment 3 David Jarvie 2024-07-09 19:37:20 UTC
KAlarm has now been converted to use the VLC library to play sound files, which will hopefully fix this bug. The fix will be in KAlarm version 3.9, which will be in the KDE Gear 24.08 release.

Commit https://invent.kde.org/pim/kalarm/-/commit/a3ce5043f2074829156f414cc32075579b3bbf94