Skip to content

Commit

Permalink
Fixed tremolo updates
Browse files Browse the repository at this point in the history
  • Loading branch information
TexZK committed May 2, 2024
1 parent 17913f2 commit 4374fe5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion include/aymo_ymf262_arm_neon.h
Original file line number Diff line number Diff line change
Expand Up @@ -239,12 +239,12 @@ struct aymo_(chip) {
uint8_t rm_hh_bit8;
uint8_t rm_tc_bit3;
uint8_t rm_tc_bit5;
uint8_t eg_tremoloreq;
uint8_t eg_tremolopos;
uint8_t eg_tremoloshift;
uint8_t eg_vibshift;
uint8_t pg_vibpos;
uint8_t process_all_slots;
uint8_t pad32_[1];

struct aymo_ymf262_chip_regs chip_regs;
struct aymo_ymf262_slot_regs slot_regs[AYMO_(SLOT_NUM_MAX)];
Expand Down
9 changes: 0 additions & 9 deletions src/aymo_ymf262_none.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,6 @@ void aymo_(write)(struct aymo_(chip)* chip, uint16_t address, uint8_t value)
assert(chip);

OPL3_WriteReg(&chip->opl3, address, value);

// Fix tremolo updates delayed w.r.t. AYMO
if (address == 0xBDu) {
uint8_t tremolopos = chip->opl3.tremolopos;
if (tremolopos >= 105u) {
tremolopos = (210u - tremolopos);
}
chip->opl3.tremolo = (tremolopos >> chip->opl3.tremoloshift);
}
}


Expand Down

0 comments on commit 4374fe5

Please sign in to comment.