Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dosbox-staging/dosbox-staging.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkcgen <kcgen@users.noreply.github.com>2022-09-05 03:23:59 +0300
committerkcgen <1557255+kcgen@users.noreply.github.com>2022-09-07 08:23:38 +0300
commit965d88c87aedf7c72e4d8d89500ede22229efa36 (patch)
tree567f342b83e8ed48291360431845883f488006fa /include
parent1bea16ed93f0ccc3402087bc5e90cf06d8a11be3 (diff)
Use a bool to record if the channel should sleep
Diffstat (limited to 'include')
-rw-r--r--include/mixer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/mixer.h b/include/mixer.h
index a17c376b9..b34322020 100644
--- a/include/mixer.h
+++ b/include/mixer.h
@@ -350,8 +350,8 @@ private:
private:
MixerChannel &channel;
- int64_t woken_at_ms = 0;
- int accumulated_noise = 0;
+ int64_t woken_at_ms = 0;
+ bool had_noise = false;
};
Sleeper sleeper;
const bool do_sleep = false;