diff options
author | mustafa salih <mustafasalih1991@gmail.com> | 2020-12-31 05:31:15 +0300 |
---|---|---|
committer | mustafa salih <mustafasalih1991@gmail.com> | 2020-12-31 05:31:15 +0300 |
commit | 57eac590cc63ca9e4b70214f5353269f709a5650 (patch) | |
tree | 5beba61eddb6b8d2973816fa9bb1c05600ce9483 /src | |
parent | dc451435ed739a0c955369980ad571ca077439ae (diff) |
config
Diffstat (limited to 'src')
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index bed2045..c496e6a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -8,6 +8,8 @@ mod load_config; mod mem; mod sound; +// TODO: this is sucks, maybe thread, i want to spawn some threads + fn main() { let settings = load_config::load().unwrap(); sound::get_sound(&settings); @@ -39,6 +41,6 @@ fn main() { .output() .unwrap(); - thread::sleep(Duration::new(1, 0)); + thread::sleep(Duration::from_millis(75)); } } |