prepare for possible DualPCM and MSM6258 VGM xprt
This commit is contained in:
parent
0f3ce6f616
commit
c3e2e902af
2 changed files with 16 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue