diff options
Diffstat (limited to 'src/devices/sound/fm.cpp')
-rw-r--r-- | src/devices/sound/fm.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/devices/sound/fm.cpp b/src/devices/sound/fm.cpp index 9213e230b88..e93d009f65f 100644 --- a/src/devices/sound/fm.cpp +++ b/src/devices/sound/fm.cpp @@ -3011,6 +3011,14 @@ void * ym2608_init(device_t *device, int clock, int rate, void *pcmrom,int pcmsi return F2608; } +void ym2608_clock_changed(void *chip, int clock, int rate) +{ + ym2608_state *F2608 = (ym2608_state *)chip; + + F2608->OPN.ST.clock = clock; + F2608->OPN.ST.rate = rate; +} + /* shut down emulator */ void ym2608_shutdown(void *chip) { @@ -3683,6 +3691,14 @@ void *ym2610_init(device_t *device, int clock, int rate, void *pcmroma,int pcmsi return F2610; } +void ym2610_clock_changed(void *chip, int clock, int rate) +{ + ym2610_state *F2610 = (ym2610_state *)chip; + + F2610->OPN.ST.clock = clock; + F2610->OPN.ST.rate = rate; +} + /* shut down emulator */ void ym2610_shutdown(void *chip) { |