| Previous | 15994 Revisions | Next |
| r14933 Sunday 15th April, 2012 at 07:31:54 UTC by Curt Coder |
|---|
| [C64] Added support for the Currah Speech 64 cartridge, pitch is not spot on yet. [Curt Coder] |
| [src/emu/sound] | sp0256.c sp0256.h |
| [src/mess/machine] | c64_currah_speech.c |
| r14932 | r14933 | |
|---|---|---|
| 1357 | 1357 | } |
| 1358 | 1358 | } |
| 1359 | 1359 | |
| 1360 | void sp0256_set_clock(device_t *device, int clock) | |
| 1361 | { | |
| 1362 | sp0256_state *sp = get_safe_token(device); | |
| 1363 | ||
| 1364 | device->set_unscaled_clock(clock); | |
| 1365 | sp->stream->set_sample_rate(clock / CLOCK_DIVIDER); | |
| 1366 | } | |
| 1367 | ||
| 1360 | 1368 | /************************************************************************** |
| 1361 | 1369 | * Generic get_info |
| 1362 | 1370 | **************************************************************************/ |
| r14932 | r14933 | |
|---|---|---|
| 61 | 61 | |
| 62 | 62 | void sp0256_bitrevbuff(UINT8 *buffer, unsigned int start, unsigned int length); |
| 63 | 63 | |
| 64 | void sp0256_set_clock(device_t *device, int clock); | |
| 65 | ||
| 64 | 66 | WRITE8_DEVICE_HANDLER( sp0256_ALD_w ); |
| 65 | 67 | |
| 66 | 68 | READ_LINE_DEVICE_HANDLER( sp0256_lrq_r ); |
| r14932 | r14933 | |
|---|---|---|
| 154 | 154 | { |
| 155 | 155 | int dotclock = m_slot->dotclock(); |
| 156 | 156 | |
| 157 | // TODO SP0256 does not handle clock change | |
| 158 | // TODO intonation | |
| 159 | m_nsp->set_unscaled_clock(dotclock / (2 << voice)); | |
| 157 | // TODO intonation and correct dividers | |
| 158 | sp0256_set_clock(m_nsp, dotclock / (2 << voice)); | |
| 160 | 159 | } |
| 161 | 160 | |
| 162 | 161 |
| Previous | 15994 Revisions | Next |