initial commit
took me a day to make the base... ...and ~12 hours to write a reader that reads 100% of all demo songs in 1.0
This commit is contained in:
commit
783d56c72a
26 changed files with 1660 additions and 0 deletions
31
src/engine/dispatch.h
Normal file
31
src/engine/dispatch.h
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
enum DivDispatchCmds {
|
||||
DIV_CMD_NOTE_ON=0,
|
||||
DIV_CMD_NOTE_OFF,
|
||||
DIV_CMD_INSTRUMENT,
|
||||
DIV_CMD_VOLUME,
|
||||
DIV_CMD_PITCH_UP,
|
||||
DIV_CMD_PITCH_DOWN,
|
||||
DIV_CMD_PITCH_TO
|
||||
};
|
||||
|
||||
struct DivCommand {
|
||||
DivDispatchCmds cmd;
|
||||
};
|
||||
|
||||
struct DivDelayedCommand {
|
||||
int ticks;
|
||||
DivCommand cmd;
|
||||
};
|
||||
|
||||
class DivDispatch {
|
||||
public:
|
||||
virtual void acquire(float& l, float& r);
|
||||
virtual int dispatch(DivCommand c);
|
||||
|
||||
/**
|
||||
* initialize this DivDispatch.
|
||||
* @param channels the number of channels to acquire.
|
||||
* @return the number of channels allocated.
|
||||
*/
|
||||
virtual int init(int channels);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue