We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22bd073 commit 22f0829Copy full SHA for 22f0829
src/main.rs
@@ -39,6 +39,7 @@ async fn main() {
39
// This just loads the font used for the game.
40
let font: Font = load_ttf_font("./Resources/Acme 9 Regular.ttf").await.unwrap();
41
42
+ // This sets up audio output
43
let (_stream, stream_handle) = OutputStream::try_default().unwrap();
44
let sink = rodio_raw::Sink::try_new(&stream_handle).unwrap();
45
@@ -2494,4 +2495,4 @@ async fn main() {
2494
2495
save_string.pop();
2496
2497
let _ = std::fs::write("./save-data/save.txt", save_string);
-}
2498
+}
0 commit comments