This commit is contained in:
Brandon Thomas
2015-12-03 02:54:00 -05:00
parent c0ea0b8fd8
commit 014c15e793
8 changed files with 4 additions and 7 deletions
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
+4 -7
View File
@@ -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))
}