Refactored sound code - slight speedup.
This commit is contained in:
parent
0b6be244ac
commit
3a57341837
33 changed files with 706 additions and 535 deletions
|
|
@ -6,6 +6,9 @@ typedef struct opl_t
|
|||
int timers_enable[2][2];
|
||||
|
||||
int16_t filtbuf[2];
|
||||
|
||||
int16_t buffer[SOUNDBUFLEN * 2];
|
||||
int pos;
|
||||
} opl_t;
|
||||
|
||||
uint8_t opl2_read(uint16_t a, void *priv);
|
||||
|
|
@ -22,3 +25,6 @@ void opl3_poll(opl_t *opl, int16_t *bufl, int16_t *bufr);
|
|||
|
||||
void opl2_init(opl_t *opl);
|
||||
void opl3_init(opl_t *opl);
|
||||
|
||||
void opl2_update2(opl_t *opl);
|
||||
void opl3_update2(opl_t *opl);
|
||||
|
|
|
|||
Loading…
Reference in a new issue