Shouldn't use bool for save stated variables anyway; representation can vary between compilers and platforms (nw)

This commit is contained in:
Alex W. Jackson 2014-10-13 23:53:01 +00:00
parent 7ab90533eb
commit a55454ec3e
2 changed files with 8 additions and 8 deletions

View File

@ -318,13 +318,13 @@ void k053260_device::KDSC_Voice::voice_reset()
m_position = 0;
m_counter = 0;
m_output = 0;
m_playing = false;
m_playing = 0;
m_start = 0;
m_length = 0;
m_pitch = 0;
m_volume = 0;
m_pan = 0;
m_loop = false;
m_loop = 0;
m_kadpcm = 0;
update_pan_volume();
}
@ -392,7 +392,7 @@ void k053260_device::KDSC_Voice::key_on()
m_position = m_kadpcm; // for kadpcm low bit is nybble offset, so must start at 1 due to preincrement
m_counter = 0x1000 - CLOCKS_PER_SAMPLE; // force update on next sound_stream_update
m_output = 0;
m_playing = true;
m_playing = 1;
if (LOG) logerror("K053260: start = %06x, length = %06x, pitch = %04x, vol = %02x, loop = %s, %s\n",
m_start, m_length, m_pitch, m_volume, m_loop ? "yes" : "no", m_kadpcm ? "KADPCM" : "PCM" );
}
@ -402,7 +402,7 @@ void k053260_device::KDSC_Voice::key_off()
{
m_position = 0;
m_output = 0;
m_playing = false;
m_playing = 0;
}
void k053260_device::KDSC_Voice::play(stream_sample_t *outputs)
@ -432,7 +432,7 @@ void k053260_device::KDSC_Voice::play(stream_sample_t *outputs)
}
else
{
m_playing = false;
m_playing = 0;
return;
}
}

View File

@ -89,7 +89,7 @@ private:
UINT16 m_pan_volume[2];
UINT16 m_counter;
INT8 m_output;
bool m_playing;
UINT8 m_playing;
// per voice registers
UINT32 m_start;
@ -99,8 +99,8 @@ private:
// bit packed registers
UINT8 m_pan;
bool m_loop;
int m_kadpcm;
UINT8 m_loop;
UINT8 m_kadpcm;
} m_voice[4];
friend class k053260_device::KDSC_Voice;