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;
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");
}