From 8f6c2657b7294201d3538a1e4b8469997519ae8b Mon Sep 17 00:00:00 2001 From: Isaac Marovitz Date: Fri, 16 Feb 2024 13:29:29 -0500 Subject: [PATCH] Fix typo + Numism APU Off Clear Coin --- src/sound/ch1.rs | 4 ++-- src/sound/ch2.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sound/ch1.rs b/src/sound/ch1.rs index bf356a0..f7ed65d 100644 --- a/src/sound/ch1.rs +++ b/src/sound/ch1.rs @@ -25,7 +25,7 @@ impl CH1 { sweep_pace: 0, negative_direction: false, sweep_step: 0, - duty_cycle: DutyCycle::QUARTER, + duty_cycle: DutyCycle::EIGHTH, length_timer: 0, volume: 0, positive_envelope: false, @@ -43,7 +43,7 @@ impl CH1 { self.sweep_pace = 0; self.negative_direction = false; self.sweep_step = 0; - self.duty_cycle = DutyCycle::QUARTER; + self.duty_cycle = DutyCycle::EIGHTH; self.length_timer = 0; self.volume = 0; self.positive_envelope = false; diff --git a/src/sound/ch2.rs b/src/sound/ch2.rs index 2842c5d..28229b1 100644 --- a/src/sound/ch2.rs +++ b/src/sound/ch2.rs @@ -18,7 +18,7 @@ impl CH2 { pub fn new() -> Self { Self { dac_enabled: false, - duty_cycle: DutyCycle::QUARTER, + duty_cycle: DutyCycle::EIGHTH, length_timer: 0, volume: 0, positive_envelope: false, @@ -32,7 +32,7 @@ impl CH2 { pub fn clear(&mut self) { self.dac_enabled = false; - self.duty_cycle = DutyCycle::QUARTER; + self.duty_cycle = DutyCycle::EIGHTH; self.length_timer = 0; self.volume = 0; self.positive_envelope = false;