(MESS) fixed uninitialized variables in arcadia_sound_device (nw)

This commit is contained in:
Oliver Stöneberg 2013-02-16 15:53:10 +00:00
parent 5900d49512
commit 16445c1078
2 changed files with 11 additions and 0 deletions

View File

@ -62,6 +62,16 @@ void arcadia_sound_device::device_start()
logerror("arcadia_sound start\n");
}
//-------------------------------------------------
// device_start - device-specific reset
//-------------------------------------------------
void arcadia_sound_device::device_reset()
{
memset(m_reg, 0, sizeof(m_reg));
m_omode = 0;
m_pos = 0;
}
//-------------------------------------------------
// sound_stream_update - handle update requests for
// our sound stream

View File

@ -25,6 +25,7 @@ public:
protected:
// device-level overrides
virtual void device_start();
virtual void device_reset();
virtual void sound_stream_update(sound_stream &stream, stream_sample_t **inputs, stream_sample_t **outputs, int samples);
sound_stream *m_channel;