Skip to content

Commit

Permalink
Stop loading PCM driver
Browse files Browse the repository at this point in the history
It's breaking note playback... investigating!
  • Loading branch information
rhargreaves committed Jul 15, 2024
1 parent 5fd4c01 commit 8d8d828
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/synth.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ static void writeRegSafe(u8 part, u8 reg, u8 data);

void synth_init(const FmChannel* initialPreset)
{
Z80_loadDriver(Z80_DRIVER_PCM, true);
// Z80_loadDriver(Z80_DRIVER_PCM, true);
Z80_requestBus(TRUE);
writeSpecialModeReg();
for (u8 chan = 0; chan < MAX_FM_CHANS; chan++) {
Expand Down
11 changes: 8 additions & 3 deletions tests/unit/test_synth.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,8 @@ static bool updated = false;
static u8 lastChan = -1;
static ParameterUpdated lastParameterUpdated = -1;

static void set_initial_registers()
static void set_initial_registers(void)
{
expect_value(__wrap_Z80_loadDriver, driver, 1);
expect_value(__wrap_Z80_loadDriver, waitReady, true);
expect_value(__wrap_Z80_requestBus, wait, TRUE);

const u16 count = 188;
Expand All @@ -70,9 +68,16 @@ static void set_initial_registers()
__real_synth_init(&M_BANK_0_INST_0_GRANDPIANO);
}

static void loads_pcm_driver(void)
{
expect_value(__wrap_Z80_loadDriver, driver, 1);
expect_value(__wrap_Z80_loadDriver, waitReady, true);
}

static int test_synth_setup(UNUSED void** state)
{
updated = false;
// loads_pcm_driver();
set_initial_registers();
return 0;
}
Expand Down

0 comments on commit 8d8d828

Please sign in to comment.