prepare for possible DualPCM and MSM6258 VGM xprt
This commit is contained in:
parent
0f3ce6f616
commit
c3e2e902af
|
@ -261,6 +261,11 @@ struct DivRegWrite {
|
||||||
addr(a), val(v) {}
|
addr(a), val(v) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct DivDelayedWrite {
|
||||||
|
int time;
|
||||||
|
DivRegWrite write;
|
||||||
|
};
|
||||||
|
|
||||||
struct DivDispatchOscBuffer {
|
struct DivDispatchOscBuffer {
|
||||||
bool follow;
|
bool follow;
|
||||||
unsigned int rate;
|
unsigned int rate;
|
||||||
|
@ -313,6 +318,14 @@ class DivDispatch {
|
||||||
*/
|
*/
|
||||||
virtual void acquire(short* bufL, short* bufR, size_t start, size_t len);
|
virtual void acquire(short* bufL, short* bufR, size_t start, size_t len);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* fill a write stream with data (e.g. for software-mixed PCM).
|
||||||
|
* @param stream the write stream.
|
||||||
|
* @param rate stream rate (e.g. 44100 for VGM).
|
||||||
|
* @param len number of samples.
|
||||||
|
*/
|
||||||
|
virtual void fillStream(std::vector<DivDelayedWrite>& stream, int rate, size_t len);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* send a command to this dispatch.
|
* send a command to this dispatch.
|
||||||
* @param c a DivCommand.
|
* @param c a DivCommand.
|
||||||
|
|
|
@ -22,6 +22,9 @@
|
||||||
void DivDispatch::acquire(short* bufL, short* bufR, size_t start, size_t len) {
|
void DivDispatch::acquire(short* bufL, short* bufR, size_t start, size_t len) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void DivDispatch::fillStream(std::vector<DivDelayedWrite>& stream, int rate, size_t len) {
|
||||||
|
}
|
||||||
|
|
||||||
void DivDispatch::tick(bool sysTick) {
|
void DivDispatch::tick(bool sysTick) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue