Skip to content

Commit

Permalink
Fixed a bug which caused the first two bits of reg7 of the audio chip…
Browse files Browse the repository at this point in the history
… being overwritten
  • Loading branch information
CNugteren committed Oct 27, 2019
1 parent b93169c commit e7cc8f4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
-------------
Expand Down
3 changes: 2 additions & 1 deletion src/sound.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e7cc8f4

Please sign in to comment.