Skip to content

Commit

Permalink
fixes for beeper API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
floooh committed Apr 4, 2018
1 parent c756622 commit 0622ad6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/yakc/systems/atom.cc
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ atom_t::ppi_out(int port_id, uint64_t pins, uint8_t data) {
case I8255_PORT_C:
atom.out_cass0 = 0 == (data & (1<<0));
atom.out_cass1 = 0 == (data & (1<<1));
beeper_write(&board.beeper_1, 0 == (data & (1<<2)));
beeper_set(&board.beeper_1, 0 == (data & (1<<2)));
vdg_pins = 0;
vdg_mask = MC6847_CSS;
if (data & (1<<3)) {
Expand Down
4 changes: 2 additions & 2 deletions src/yakc/systems/kc85.cc
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ kc85_t::poweron(system m, os_rom os) {
z80_init(&board.z80, cpu_tick);
z80pio_init(&board.z80pio_1, pio_in, pio_out);
z80ctc_init(&board.z80ctc);
beeper_init(&board.beeper_1, board.freq_hz, SOUND_SAMPLE_RATE, 0.5f);
beeper_init(&board.beeper_2, board.freq_hz, SOUND_SAMPLE_RATE, 0.5f);
beeper_init(&board.beeper_1, board.freq_hz, SOUND_SAMPLE_RATE, 0.4f);
beeper_init(&board.beeper_2, board.freq_hz, SOUND_SAMPLE_RATE, 0.4f);
this->exp.poweron();
this->cur_scanline = 0;

Expand Down
2 changes: 1 addition & 1 deletion src/yakc/systems/zx.cc
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ zx_t::cpu_tick(int num_ticks, uint64_t pins) {
// bit 3: MIC output (CAS SAVE, 0=On, 1=Off)
// bit 4: Beep output (ULA sound, 0=Off, 1=On)
zx.last_fe_out = data;
beeper_write(&board.beeper_1, 0 != (data & (1<<4)));
beeper_set(&board.beeper_1, 0 != (data & (1<<4)));
}
else if (system::zxspectrum128k == zx.cur_model) {
// Spectrum 128 memory control (0.............0.)
Expand Down

0 comments on commit 0622ad6

Please sign in to comment.