Add a volume slider in the simulator

This commit is contained in:
Hugo Chargois
2023-09-16 01:39:52 +02:00
parent bc9b4ce700
commit 2e364f4ef9
2 changed files with 45 additions and 5 deletions

View File

@@ -152,7 +152,7 @@ void watch_set_buzzer_on(void) {
}
audioContext._oscillator.frequency.value = 1e6/$0;
audioContext._gain.gain.value = 1;
audioContext._gain.gain.value = volumeGain;
}, buzzer_period);
}