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;
|
||||
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");
|
||||
}
|
||||
|
|
Reference in New Issue