Connected firefox audio enables.

This commit is contained in:
Aaron Giles 2008-10-13 17:17:07 +00:00
parent 3d85b66c5e
commit 85e3077616
2 changed files with 6 additions and 9 deletions

View File

@ -383,14 +383,16 @@ static TIMER_CALLBACK( deferred_data_w )
ldplayer_data *player = ld->player;
/* set the value and mark it pending */
if (LOG_COMMANDS && player->fromcontroller_pending)
printf("Dropped previous command byte\n");
player->fromcontroller = param;
player->fromcontroller_pending = TRUE;
/* track the commands for debugging purposes */
if (player->cmdcount < ARRAY_LENGTH(player->cmdbuf))
{
player->cmdbuf[player->cmdcount++] = param;
if (LOG_COMMANDS && player->cmdcount == 3)
player->cmdbuf[player->cmdcount++ % 3] = param;
if (LOG_COMMANDS && player->cmdcount % 3 == 0)
printf("Cmd: %02X %02X %02X\n", player->cmdbuf[0], player->cmdbuf[1], player->cmdbuf[2]);
}
}

View File

@ -61,8 +61,6 @@ fffe=reset e7cc
static const device_config *laserdisc;
static int m_n_disc_lock;
static int m_n_disc_left_audio;
static int m_n_disc_right_audio;
static int m_n_disc_data;
static int m_n_disc_read_data;
@ -104,10 +102,7 @@ static WRITE8_HANDLER( firefox_disc_lock_w )
static WRITE8_HANDLER( audio_enable_w )
{
if (!(offset & 1))
m_n_disc_right_audio = data & 0x80;
else
m_n_disc_left_audio = data & 0x80;
sndti_set_output_gain(SOUND_CUSTOM, 0, ~offset & 1, (data & 0x80) ? 1.0 : 0.0);
}
static WRITE8_HANDLER( firefox_disc_reset_w )