Compare commits
No commits in common. "ae81570c07d5ad593ed9df5a88ff90218df6d80d" and "0afc497f78b6e61b4cd1599285891895a123397e" have entirely different histories.
ae81570c07
...
0afc497f78
|
@ -17,5 +17,3 @@ you can skip/remove any unwanted sounds, and add your own.
|
|||
*campfire* by [sagetyrtle](https://freesound.org/people/sagetyrtle/)
|
||||
|
||||
*rain on glass* by [Benboncan](https://freesound.org/people/Benboncan/)
|
||||
|
||||
*birdsong* by [reinsamba](https://freesound.org/people/reinsamba/)
|
||||
|
|
10
src/main.rs
10
src/main.rs
|
@ -64,15 +64,11 @@ fn build_ui(application: >k::Application) {
|
|||
|
||||
let device = rodio::default_output_device().unwrap();
|
||||
|
||||
let mut paths = std::fs::read_dir(get_data_dir())
|
||||
.expect("Couldn't read lull sounds directory")
|
||||
.map(|res| res.map(|e| e.path()))
|
||||
.collect::<Result<Vec<_>, std::io::Error>>()
|
||||
.expect("Couldn't read files from lull sounds directory");
|
||||
|
||||
paths.sort();
|
||||
let paths = std::fs::read_dir(get_data_dir())
|
||||
.expect("Couldn't read from lull data directory");
|
||||
|
||||
for path in paths {
|
||||
let path = path.unwrap().path();
|
||||
let name: &str = path.file_stem().unwrap().to_str().unwrap();
|
||||
|
||||
let file = File::open(&path)
|
||||
|
|
Loading…
Reference in New Issue