mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-01 07:58:23 +00:00
cleanup
This commit is contained in:
1 parent
c0ea0b8fd8
commit
014c15e793
8 files changed
+4
-7
No files matched your search
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+4
-7
@@ -8,12 +8,8 @@ use hound::{WavReader, WavSpec, WavWriter};
|
||||
|
||||
fn main() {
|
||||
let dictionary = [
|
||||
"welcome",
|
||||
"to",
|
||||
"the",
|
||||
"internet",
|
||||
"meme",
|
||||
"generator",
|
||||
"absolutely",
|
||||
"that",
|
||||
];
|
||||
|
||||
// Note: Keeping a list of buffered file readers is stupid and is simply
|
||||
@@ -43,7 +39,8 @@ fn main() {
|
||||
}
|
||||
|
||||
fn get_filename(word: &str) -> PathBuf {
|
||||
let sound_directory = Path::new("./sounds"); // TODO: Const or startup param.
|
||||
// TODO: Const or startup param.
|
||||
let sound_directory = Path::new("./sounds/trump");
|
||||
sound_directory.join(format!("{}.wav", word))
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user