Skip to content
This repository was archived by the owner on Jan 1, 2026. It is now read-only.

Commit 19e68c9

Browse files
authored
Create audio.rs
1 parent ce67b2c commit 19e68c9

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

tests/audio.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#![cfg(test)]
2+
3+
use std::path::Path;
4+
use age_engine::audio::audio_handles::OutputHandle;
5+
#[test]
6+
fn play_test() {
7+
let handle=OutputHandle::default();
8+
let mut handle=handle.activate_output_with_default_device().unwrap();
9+
handle.load_file(Path::new("music.mp3"), String::from("1")).unwrap();
10+
handle.play_loaded(String::from("1"),1).unwrap();
11+
}

0 commit comments

Comments
 (0)