potential flush needed here too
This commit is contained in:
parent
fd2c17e4f9
commit
5d63b253ce
|
@ -405,6 +405,10 @@ void DivZSM::flushWrites() {
|
||||||
pcmMeta.clear();
|
pcmMeta.clear();
|
||||||
}
|
}
|
||||||
if (extCmd0Len) { // we have some PCM events to write
|
if (extCmd0Len) { // we have some PCM events to write
|
||||||
|
if (!hasFlushed) {
|
||||||
|
flushTicks();
|
||||||
|
hasFlushed=true;
|
||||||
|
}
|
||||||
w->writeC(ZSM_EXT);
|
w->writeC(ZSM_EXT);
|
||||||
w->writeC(ZSM_EXT_PCM|(unsigned char)extCmd0Len);
|
w->writeC(ZSM_EXT_PCM|(unsigned char)extCmd0Len);
|
||||||
for (DivRegWrite& write: pcmMeta) {
|
for (DivRegWrite& write: pcmMeta) {
|
||||||
|
@ -419,6 +423,10 @@ void DivZSM::flushWrites() {
|
||||||
}
|
}
|
||||||
n=0;
|
n=0;
|
||||||
for (DivRegWrite& write: syncCache) {
|
for (DivRegWrite& write: syncCache) {
|
||||||
|
if (!hasFlushed) {
|
||||||
|
flushTicks();
|
||||||
|
hasFlushed=true;
|
||||||
|
}
|
||||||
if (n%ZSM_SYNC_MAX_WRITES==0) {
|
if (n%ZSM_SYNC_MAX_WRITES==0) {
|
||||||
w->writeC(ZSM_EXT);
|
w->writeC(ZSM_EXT);
|
||||||
if (syncCache.size()-n>ZSM_SYNC_MAX_WRITES) {
|
if (syncCache.size()-n>ZSM_SYNC_MAX_WRITES) {
|
||||||
|
|
Loading…
Reference in New Issue