mirror of
https://github.com/ScrelliCopter/VGM-Tools
synced 2025-02-21 04:09:25 +11:00
Reorganised slightly, and added my spc sample ripper + spc2it.
This commit is contained in:
28
spctools/spc2it/sound.h
Normal file
28
spctools/spc2it/sound.h
Normal file
@@ -0,0 +1,28 @@
|
||||
/****************************************************
|
||||
*Part of SPC2IT, read readme.md for more information*
|
||||
****************************************************/
|
||||
|
||||
#ifndef SOUND_H
|
||||
#define SOUND_H
|
||||
|
||||
#include "spc2ittypes.h"
|
||||
|
||||
#define ATTACK 0 // A of ADSR
|
||||
#define DECAY 1 // D of ADSR
|
||||
#define SUSTAIN 2 // S of ADSR
|
||||
#define RELEASE 3 // R of ADSR
|
||||
#define DECREASE 4 // GAIN linear decrease mode
|
||||
#define EXP 5 // GAIN exponential decrease mode
|
||||
#define INCREASE 6 // GAIN linear increase mode
|
||||
#define BENT 7 // GAIN bent line increase mode
|
||||
#define DIRECT 8 // Directly specify ENVX
|
||||
|
||||
extern sndvoice SNDvoices[8];
|
||||
extern s32 SNDkeys, SNDratecnt;
|
||||
|
||||
s32 SNDDoEnv(s32);
|
||||
void SNDNoteOn(u8);
|
||||
void SNDNoteOff(u8);
|
||||
s32 SNDInit();
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user