Fix delay issue, Add debug view for frequency
This commit is contained in:
parent
be2b67210d
commit
507f91f261
|
@ -57,6 +57,7 @@ inline void DivPlatformK007232::chWrite(unsigned char ch, unsigned int addr, uns
|
|||
void DivPlatformK007232::acquire(short* bufL, short* bufR, size_t start, size_t len) {
|
||||
for (size_t h=start; h<start+len; h++) {
|
||||
if ((--delay)<=0) {
|
||||
delay=MAX(0,delay);
|
||||
if (!writes.empty()) {
|
||||
QueuedWrite& w=writes.front();
|
||||
// write on-chip register
|
||||
|
|
|
@ -1129,7 +1129,7 @@ void putDispatchChan(void* data, int chanNum, int type) {
|
|||
case DIV_SYSTEM_K007232: {
|
||||
DivPlatformK007232::Channel* ch=(DivPlatformK007232::Channel*)data;
|
||||
ImGui::Text("> K007232");
|
||||
ImGui::Text("* freq:");
|
||||
ImGui::Text("* freq: %d",ch->freq);
|
||||
ImGui::Text(" - base: %d",ch->baseFreq);
|
||||
ImGui::Text(" - pitch: %d",ch->pitch);
|
||||
ImGui::Text(" - pitch2: %d",ch->pitch2);
|
||||
|
|
Loading…
Reference in New Issue