diff options
Diffstat (limited to 'src/emu/sound/sidenvel.h')
-rw-r--r-- | src/emu/sound/sidenvel.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/emu/sound/sidenvel.h b/src/emu/sound/sidenvel.h new file mode 100644 index 00000000000..8f0c83a1465 --- /dev/null +++ b/src/emu/sound/sidenvel.h @@ -0,0 +1,32 @@ +// +// /home/ms/source/sidplay/libsidplay/emu/RCS/envelope.h,v +// + +#ifndef ENVELOPE_H +#define ENVELOPE_H + + +extern void enveEmuInit(UINT32 updateFreq, int measuredValues); +void enveEmuResetOperator(sidOperator* pVoice); + + +extern ptr2sidUwordFunc enveModeTable[]; // -> envelope.cpp +extern const UINT8 masterVolumeLevels[16]; // -> envelope.cpp + +static const UINT8 ENVE_STARTATTACK = 0; +static const UINT8 ENVE_STARTRELEASE = 2; + +static const UINT8 ENVE_ATTACK = 4; +static const UINT8 ENVE_DECAY = 6; +static const UINT8 ENVE_SUSTAIN = 8; +static const UINT8 ENVE_RELEASE = 10; +static const UINT8 ENVE_SUSTAINDECAY = 12; +static const UINT8 ENVE_MUTE = 14; + +static const UINT8 ENVE_STARTSHORTATTACK = 16; +static const UINT8 ENVE_SHORTATTACK = 16; + +static const UINT8 ENVE_ALTER = 32; + + +#endif |