OPLL: fix per-channel osc, part 1
This commit is contained in:
parent
90481cc460
commit
4dfd413ead
3 changed files with 20 additions and 2 deletions
4
extern/Nuked-OPLL/opll.c
vendored
4
extern/Nuked-OPLL/opll.c
vendored
|
|
@ -1019,6 +1019,10 @@ static void OPLL_Operator(opll_t *chip) {
|
|||
}
|
||||
|
||||
chip->ch_out = ismod1 ? routput : (output>>3);
|
||||
|
||||
if (!ismod1) {
|
||||
chip->output_ch[(chip->cycles+1)%9] = chip->ch_out;
|
||||
}
|
||||
}
|
||||
|
||||
static void OPLL_DoRhythm(opll_t *chip) {
|
||||
|
|
|
|||
2
extern/Nuked-OPLL/opll.h
vendored
2
extern/Nuked-OPLL/opll.h
vendored
|
|
@ -191,6 +191,8 @@ typedef struct {
|
|||
int16_t output_m;
|
||||
int16_t output_r;
|
||||
|
||||
int16_t output_ch[9];
|
||||
|
||||
} opll_t;
|
||||
|
||||
const opll_patch_t* OPLL_GetPatchROM(uint32_t chip_type);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue