mirror of
https://github.com/mauiaaron/apple2.git
synced 2024-12-28 12:33:04 +00:00
Properly set speaker volume
This commit is contained in:
parent
5291ee750d
commit
bca223780c
@ -455,7 +455,7 @@ bool speaker_isActive(void) {
|
||||
|
||||
void speaker_setVolumeZeroToTen(unsigned long goesToTen) {
|
||||
float samplesScale = goesToTen/10.f;
|
||||
speaker_data = (int16_t)(SPKR_DATA_INIT * samplesScale);
|
||||
speaker_amplitude = (int16_t)(SPKR_DATA_INIT * samplesScale);
|
||||
}
|
||||
|
||||
double speaker_cyclesPerSample(void) {
|
||||
|
Loading…
Reference in New Issue
Block a user