From e7cc8f4a56b5be274235d18873c82994f2acefc2 Mon Sep 17 00:00:00 2001 From: Cedric Nugteren Date: Sun, 27 Oct 2019 20:23:40 +0100 Subject: [PATCH] Fixed a bug which caused the first two bits of reg7 of the audio chip being overwritten --- CHANGELOG | 3 +++ README.md | 2 -- src/sound.c | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 1d40425..51f3357 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,4 +1,7 @@ +Development version +- Fixed a bug which caused the first two bits of 'register 7' of the audio chip being overwritten + MidiSurf 1.2 (2019-10-25) - Fixed an issue with file-selection and a missing *.* on TOS < 1.04 - Quick & dirty port of the game to work on a 320x200 low-res screen as well diff --git a/README.md b/README.md index 3708044..4328800 100644 --- a/README.md +++ b/README.md @@ -37,8 +37,6 @@ The game is currently limited in the following ways: * Certain features of Midi tracks are not supported yet and parsing those tracks will result in an error -* The Atari ST sometimes needs a reboot after the game is ended - unclear why this needed - Compilation ------------- diff --git a/src/sound.c b/src/sound.c index 7995b97..3d0d478 100644 --- a/src/sound.c +++ b/src/sound.c @@ -59,7 +59,8 @@ void disable_keyboard_bell() void init_audio() { Supexec(disable_keyboard_bell); - __uint8_t register_7 = 0b00111111; // Disable all noise generators and channels (if they were on) + __uint8_t register_7 = Giaccess(0, 0x07); + register_7 |= 0b00111111; // Disable all noise generators and channels (if they were on) Giaccess(register_7, 0x07 | WRITE); int c = 0; for (c = 0; c < 3; ++c) {