chore: add jaad dependency to fix .m4a playback on Desktop

This commit is contained in:
Antoine Jaury
2026-09-30 11:18:54 +02:00
parent ac07be5634
commit 3acba87728
4 changed files with 16 additions and 1 deletions
@@ -17,6 +17,10 @@ import kotlin.time.Duration.Companion.microseconds
/**
* Desktop [AudioPlayer] backed by [javax.sound.sampled].
*
* The JDK decodes neither AAC nor its MP4 container, so the `.m4a` recordings are decoded to PCM by
* the jaad AAC provider on the classpath, which [AudioSystem] discovers automatically. Loading then
* works the same as for any natively supported format.
*/
internal class JvmAudioPlayer : AudioPlayer {
private var clip: Clip? = null