- [NEW] mòdul 'zx_speaker' per a unificar la eixida de só

This commit is contained in:
2025-07-24 19:39:57 +02:00
parent 780afbc6a8
commit 91a8933544
6 changed files with 83 additions and 55 deletions

View File

@@ -5,6 +5,7 @@
#include "zx_mem.h"
#include "z80analyze.h"
#include "zx_ula.h"
#include "zx_speaker.h"
#include "zx_tape.h"
#include "ui.h"
#include "ui_window.h"
@@ -360,7 +361,7 @@ namespace z80debug
void pause()
{
zx_ula::sound_disable();
speaker::disable();
is_paused = true;
breakpoints[z80::getPC()] &= ~8;
}
@@ -383,7 +384,7 @@ namespace z80debug
//hide();
refresh();
zxscreen::focus();
zx_ula::sound_enable();
speaker::enable();
}
const bool debugging() { return is_debugging; }
@@ -791,7 +792,7 @@ namespace z80debug
if (strcmp(cmd, "s")==0 || strcmp(cmd, "step")==0) {
uint8_t dt = z80::step();
zx_tape::update(dt);
zx_ula::sound_update(dt);
speaker::update(dt);
zxscreen::fullrefresh();
z80analyze::refresh();
} else if (strcmp(cmd, "c")==0 || strcmp(cmd, "cont")==0) {