Skip to content

Commit

Permalink
read modulation values as signed
Browse files Browse the repository at this point in the history
  • Loading branch information
skyfloogle committed Apr 1, 2024
1 parent 6e75f3b commit bad4007
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/common/vb_sound.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ void sound_update(u32 cycles) {
if (sound_state.sweep_time != 0) {
if (env & 0x10) {
// modulation
sound_state.sweep_frequency = GET_FREQ(4) + SNDMEM(MODDATA + 4 * sound_state.modulation_counter++);
sound_state.sweep_frequency = GET_FREQ(4) + (s8)SNDMEM(MODDATA + 4 * sound_state.modulation_counter++);
if (sound_state.modulation_counter >= 32) {
if (env & 0x20) {
// repeat
Expand Down

0 comments on commit bad4007

Please sign in to comment.