fixup: maybe please work
cargo devel CI / cargo CI (push) Failing after 1m10s Details

This commit is contained in:
Christoph J. Scherr 2024-07-12 14:34:21 +02:00
parent bec4f3d68a
commit 744bc3cbeb
1 changed files with 2 additions and 8 deletions

View File

@ -410,14 +410,8 @@ impl Clock {
use awedio::Sound; use awedio::Sound;
trace!("playing bundled sound"); trace!("playing bundled sound");
// only 30 KiB, so let's just include it in the binary and not worry about reading it let (mut manager, backend) = awedio::start()?;
// from the fs and somehow making the file be there manager.play(awedio::sounds::open_file("../data/media/alarm.mp3")?);
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()?));
debug!("played bundled sound"); debug!("played bundled sound");
} }