diff options
author | Vitaly Novichkov <Wohlstand@users.noreply.github.com> | 2019-02-08 11:15:04 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-08 11:15:04 +0300 |
commit | ce90247dcf72ea48a44cb1b733fc0634dbf6397b (patch) | |
tree | c9bb52a1670e58b362a850e3727f3927399086af /src/chips/nuked/nukedopl3.h | |
parent | 307678d1831434b9565c82960aae3b97d37f71df (diff) | |
parent | f5f850325b6aacb44d9f07dac53e55f2708833ba (diff) | |
download | libADLMIDI-ce90247dcf72ea48a44cb1b733fc0634dbf6397b.tar.gz libADLMIDI-ce90247dcf72ea48a44cb1b733fc0634dbf6397b.tar.bz2 libADLMIDI-ce90247dcf72ea48a44cb1b733fc0634dbf6397b.zip |
Merge pull request #201 from jpcima/nukedopl
Nuked OPL 1.8 optimizations port
Diffstat (limited to 'src/chips/nuked/nukedopl3.h')
-rw-r--r-- | src/chips/nuked/nukedopl3.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/chips/nuked/nukedopl3.h b/src/chips/nuked/nukedopl3.h index 268e8de..9849569 100644 --- a/src/chips/nuked/nukedopl3.h +++ b/src/chips/nuked/nukedopl3.h @@ -33,13 +33,16 @@ #define OPL_OPL3_H #include <inttypes.h> +#include <stdint.h> #ifdef __cplusplus extern "C" { #endif + #define OPL_WRITEBUF_SIZE 1024 #define OPL_WRITEBUF_DELAY 2 +#define OPL_FAST_WAVEGEN 1 /* optimized waveform generation */ typedef uintptr_t Bitu; typedef intptr_t Bits; @@ -86,6 +89,12 @@ struct _opl3_slot { Bit32u pg_phase; Bit16u pg_phase_out; Bit8u slot_num; + +#if OPL_FAST_WAVEGEN + Bit16u maskzero; + Bit8u signpos; + Bit8u phaseshift; +#endif }; struct _opl3_channel { |