summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author arbee <rb6502@users.noreply.github.com>2015-07-03 17:48:36 -0400
committer arbee <rb6502@users.noreply.github.com>2015-07-03 17:48:36 -0400
commitf9d06bda2b015da37b230383a539b8fa8c110d29 (patch)
tree77522dd6da14c84f8952458a7971ffcb0c05190e
parent6a5cdf8be5398eb725d7830496ca512b34537cd5 (diff)
saa1099: fix compile (nw)
-rw-r--r--src/emu/sound/saa1099.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/emu/sound/saa1099.c b/src/emu/sound/saa1099.c
index 4970b68519d..a915fa6ed38 100644
--- a/src/emu/sound/saa1099.c
+++ b/src/emu/sound/saa1099.c
@@ -263,24 +263,24 @@ void saa1099_device::sound_stream_update(sound_stream &stream, stream_sample_t *
}
// if the noise is enabled
- if (m->channels[ch].noise_enable)
+ if (m_channels[ch].noise_enable)
{
// if the noise level is high (noise 0: chan 0-2, noise 1: chan 3-5)
- if (m->noise[ch/3].level & 1)
+ if (m_noise[ch/3].level & 1)
{
// subtract to avoid overflows, also use only half amplitude
- output_l -= m->channels[ch].amplitude[ LEFT] * m->channels[ch].envelope[ LEFT] / 16 / 2;
- output_r -= m->channels[ch].amplitude[RIGHT] * m->channels[ch].envelope[RIGHT] / 16 / 2;
+ output_l -= m_channels[ch].amplitude[ LEFT] * m_channels[ch].envelope[ LEFT] / 16 / 2;
+ output_r -= m_channels[ch].amplitude[RIGHT] * m_channels[ch].envelope[RIGHT] / 16 / 2;
}
}
// if the square wave is enabled
- if (m->channels[ch].freq_enable)
+ if (m_channels[ch].freq_enable)
{
// if the channel level is high
- if (m->channels[ch].level & 1)
+ if (m_channels[ch].level & 1)
{
- output_l += m->channels[ch].amplitude[ LEFT] * m->channels[ch].envelope[ LEFT] / 16;
- output_r += m->channels[ch].amplitude[RIGHT] * m->channels[ch].envelope[RIGHT] / 16;
+ output_l += m_channels[ch].amplitude[ LEFT] * m_channels[ch].envelope[ LEFT] / 16;
+ output_r += m_channels[ch].amplitude[RIGHT] * m_channels[ch].envelope[RIGHT] / 16;
}
}
}