Previous 199869 Revisions Next

r32949 Saturday 25th October, 2014 at 10:49:53 UTC by Alex Marshall
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.
[src/emu/sound]x1_010.c

trunk/src/emu/sound/x1_010.c
r241460r241461
212212            volL     = ((reg->volume>>4)&0xf)*VOL_BASE;
213213            volR     = ((reg->volume>>0)&0xf)*VOL_BASE;
214214            smp_offs = m_smp_offset[ch];
215            freq     = reg->frequency&0x1f;
216            // Meta Fox does not write the frequency register. Ever
215            freq     = reg->frequency;
216            // Meta Fox does write the frequency register, but this is a hack to make it "work" with the current setup
217            // This is broken for Arbalester (it writes 8), but that'll be fixed later.
217218            if( freq == 0 ) freq = 4;
218219            smp_step = (UINT32)((float)m_base_clock/8192.0
219220                     *freq*(1<<FREQ_BASE_BITS)/(float)m_rate);


Previous 199869 Revisions Next


© 1997-2024 The MAME Team