diff --git a/src/clock.rs b/src/clock.rs index ef3eabf..0cd35bf 100644 --- a/src/clock.rs +++ b/src/clock.rs @@ -410,14 +410,8 @@ impl Clock { use awedio::Sound; trace!("playing bundled sound"); - // only 30 KiB, so let's just include it in the binary and not worry about reading it - // from the fs and somehow making the file be there - let sound: Cursor<_> = std::io::Cursor::new(include_bytes!("../data/media/alarm.mp3")); - - let (mut manager, _backend) = awedio::start()?; - let decoder = awedio::sounds::decoders::Mp3Decoder::new(sound); - - manager.play(Box::new(decoder.into_memory_sound()?)); + let (mut manager, backend) = awedio::start()?; + manager.play(awedio::sounds::open_file("../data/media/alarm.mp3")?); debug!("played bundled sound"); }