trunk/src/emu/sound/x1_010.c
r241460 | r241461 | |
212 | 212 | volL = ((reg->volume>>4)&0xf)*VOL_BASE; |
213 | 213 | volR = ((reg->volume>>0)&0xf)*VOL_BASE; |
214 | 214 | 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. |
217 | 218 | if( freq == 0 ) freq = 4; |
218 | 219 | smp_step = (UINT32)((float)m_base_clock/8192.0 |
219 | 220 | *freq*(1<<FREQ_BASE_BITS)/(float)m_rate); |