small cleanup
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3390
This commit is contained in:
parent
7696f4706c
commit
05da192ef7
3 changed files with 37 additions and 21 deletions
|
|
@ -42,6 +42,13 @@ typedef uint8_t Bit8u;
|
|||
typedef int8_t Bit8s;
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
define attribution that inlines/forces inlining of a function (optional)
|
||||
*/
|
||||
#define OPL_INLINE INLINE
|
||||
|
||||
|
||||
#undef NUM_CHANNELS
|
||||
#if defined(OPLTYPE_IS_OPL3)
|
||||
#define NUM_CHANNELS 18
|
||||
|
|
@ -135,7 +142,7 @@ typedef struct operator_struct {
|
|||
Bit32u generator_pos; // for non-standard sample rates we need to determine how many samples have passed
|
||||
Bits cur_env_step; // current (standardized) sample position
|
||||
Bits env_step_a,env_step_d,env_step_r; // number of std samples of one step (for attack/decay/release mode)
|
||||
Bit8u step_skip_pos; // position of 8-cyclic step skipping (always 2^x to check against mask)
|
||||
Bit8u step_skip_pos_a; // position of 8-cyclic step skipping (always 2^x to check against mask)
|
||||
Bits env_step_skip_a; // bitmask that determines if a step is skipped (respective bit is zero then)
|
||||
|
||||
#if defined(OPLTYPE_IS_OPL3)
|
||||
|
|
@ -151,7 +158,7 @@ op_type op[MAXOPERATORS];
|
|||
Bits int_samplerate;
|
||||
|
||||
Bit8u status;
|
||||
Bit32u index;
|
||||
Bit32u opl_index;
|
||||
#if defined(OPLTYPE_IS_OPL3)
|
||||
Bit8u adlibreg[512]; // adlib register set (including second set)
|
||||
Bit8u wave_sel[44]; // waveform selection
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue