prepare for possible DualPCM and MSM6258 VGM xprt

This commit is contained in:
tildearrow 2022-10-16 21:35:25 -05:00
parent 0f3ce6f616
commit c3e2e902af
2 changed files with 16 additions and 0 deletions

View File

@ -261,6 +261,11 @@ struct DivRegWrite {
addr(a), val(v) {}
};
struct DivDelayedWrite {
int time;
DivRegWrite write;
};
struct DivDispatchOscBuffer {
bool follow;
unsigned int rate;
@ -313,6 +318,14 @@ class DivDispatch {
*/
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.
* @param c a DivCommand.

View File

@ -22,6 +22,9 @@
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) {
}