diff options
| author | Eskil Queseth <eskilq@kth.se> | 2021-02-12 00:00:34 +0100 |
|---|---|---|
| committer | Eskil Queseth <eskilq@kth.se> | 2021-02-12 00:00:34 +0100 |
| commit | c2adfc88f8aeb4bbdb417897b0cbf44b5b9f7b2c (patch) | |
| tree | 39ad331fc870d8994383640bf206138077943c32 /mumd/src/state.rs | |
| parent | 154a2930b3bbe5ede06648c3a10b8fa4904277f4 (diff) | |
| download | mum-c2adfc88f8aeb4bbdb417897b0cbf44b5b9f7b2c.tar.gz | |
fix audio buffer overflowing
Diffstat (limited to 'mumd/src/state.rs')
| -rw-r--r-- | mumd/src/state.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mumd/src/state.rs b/mumd/src/state.rs index 2ed73b2..6f22f54 100644 --- a/mumd/src/state.rs +++ b/mumd/src/state.rs @@ -63,9 +63,11 @@ pub struct State { impl State { pub fn new() -> Self { let config = mumlib::config::read_default_cfg(); + let watcher = watch::channel(StatePhase::Disconnected); let audio = Audio::new( config.audio.input_volume.unwrap_or(1.0), config.audio.output_volume.unwrap_or(1.0), + watcher.1.clone(), ); let mut state = Self { config, |
