generated from PlexSheep/rs-base
fixup: maybe please work
cargo devel CI / cargo CI (push) Failing after 1m10s
Details
cargo devel CI / cargo CI (push) Failing after 1m10s
Details
This commit is contained in:
parent
bec4f3d68a
commit
744bc3cbeb
10
src/clock.rs
10
src/clock.rs
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue