diff options
| author | 2014-10-25 03:49:53 -0700 | |
|---|---|---|
| committer | 2014-10-25 03:49:53 -0700 | |
| commit | d0b49b2407bcf994884d932f8cb6d132066346ef (patch) | |
| tree | e700fe60bfa5f6d22a70c3d7716ae6d4672a678f | |
| parent | 797ef55e2f6431afbf884057d56c93e7eba5dc7b (diff) | |
Fix frequency for X1-010 and add a note.
I know PhilB is working on a totally new driver, but this should be fixed anyways. It's a very small change, but fixes a lot of things and breaks nothing as far as I can tell.
| -rw-r--r-- | src/emu/sound/x1_010.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/emu/sound/x1_010.c b/src/emu/sound/x1_010.c index 7f73b937a2a..82797e1ba7b 100644 --- a/src/emu/sound/x1_010.c +++ b/src/emu/sound/x1_010.c @@ -212,8 +212,9 @@ void x1_010_device::sound_stream_update(sound_stream &stream, stream_sample_t ** volL = ((reg->volume>>4)&0xf)*VOL_BASE; volR = ((reg->volume>>0)&0xf)*VOL_BASE; smp_offs = m_smp_offset[ch]; - freq = reg->frequency&0x1f; - // Meta Fox does not write the frequency register. Ever + freq = reg->frequency; + // Meta Fox does write the frequency register, but this is a hack to make it "work" with the current setup + // This is broken for Arbalester (it writes 8), but that'll be fixed later. if( freq == 0 ) freq = 4; smp_step = (UINT32)((float)m_base_clock/8192.0 *freq*(1<<FREQ_BASE_BITS)/(float)m_rate); |
