prepare for eventual export
This commit is contained in:
parent
499af535da
commit
12236248dd
21 changed files with 137 additions and 3 deletions
|
|
@ -2,6 +2,7 @@
|
|||
#define _DISPATCH_H
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <vector>
|
||||
|
||||
#define ONE_SEMITONE 2200
|
||||
|
||||
|
|
@ -98,15 +99,27 @@ struct DivDelayedCommand {
|
|||
DivCommand cmd;
|
||||
};
|
||||
|
||||
struct DivRegWrite {
|
||||
/**
|
||||
* an address of 0xffffff00 indicates a Furnace specific command.
|
||||
* the following addresses are available:
|
||||
* - 0xffffff00: start sample playback
|
||||
* - data is the sample number
|
||||
*/
|
||||
unsigned int addr;
|
||||
unsigned char val;
|
||||
};
|
||||
|
||||
class DivEngine;
|
||||
|
||||
class DivDispatch {
|
||||
protected:
|
||||
DivEngine* parent;
|
||||
std::vector<DivRegWrite> regWrites;
|
||||
/**
|
||||
* please honor this variable if needed.
|
||||
* please honor these variables if needed.
|
||||
*/
|
||||
bool skipRegisterWrites;
|
||||
bool skipRegisterWrites, dumpWrites;
|
||||
public:
|
||||
/**
|
||||
* the rate the samples are provided.
|
||||
|
|
@ -208,6 +221,16 @@ class DivDispatch {
|
|||
*/
|
||||
virtual void forceIns();
|
||||
|
||||
/**
|
||||
* enable register dumping.
|
||||
*/
|
||||
void toggleRegisterDump(bool enable);
|
||||
|
||||
/**
|
||||
* get register writes.
|
||||
*/
|
||||
std::vector<DivRegWrite>& getRegisterWrites();
|
||||
|
||||
/**
|
||||
* initialize this DivDispatch.
|
||||
* @param parent the parent DivEngine.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue