trunk/src/emu/sound/2610intf.c
| r22750 | r22751 | |
| 18 | 18 | |
| 19 | 19 | static void psg_set_clock(void *param, int clock) |
| 20 | 20 | { |
| 21 | | ym2610_device *ym2610 = downcast<ym2610_device *>(param); |
| 21 | ym2610_device *ym2610 = (ym2610_device *) param; |
| 22 | 22 | ay8910_set_clock_ym(ym2610->_psg(), clock); |
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | static void psg_write(void *param, int address, int data) |
| 26 | 26 | { |
| 27 | | ym2610_device *ym2610 = downcast<ym2610_device *>(param); |
| 27 | ym2610_device *ym2610 = (ym2610_device *) param; |
| 28 | 28 | ay8910_write_ym(ym2610->_psg(), address, data); |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | static int psg_read(void *param) |
| 32 | 32 | { |
| 33 | | ym2610_device *ym2610 = downcast<ym2610_device *>(param); |
| 33 | ym2610_device *ym2610 = (ym2610_device *) param; |
| 34 | 34 | return ay8910_read_ym(ym2610->_psg()); |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | static void psg_reset(void *param) |
| 38 | 38 | { |
| 39 | | ym2610_device *ym2610 = downcast<ym2610_device *>(param); |
| 39 | ym2610_device *ym2610 = (ym2610_device *) param; |
| 40 | 40 | ay8910_reset_ym(ym2610->_psg()); |
| 41 | 41 | } |
| 42 | 42 | |
| r22750 | r22751 | |
| 57 | 57 | /* IRQ Handler */ |
| 58 | 58 | static void IRQHandler(void *param,int irq) |
| 59 | 59 | { |
| 60 | | ym2610_device *ym2610 = downcast<ym2610_device *>(param); |
| 60 | ym2610_device *ym2610 = (ym2610_device *) param; |
| 61 | 61 | ym2610->_IRQHandler(irq); |
| 62 | 62 | } |
| 63 | 63 | |
| r22750 | r22751 | |
| 84 | 84 | |
| 85 | 85 | static void timer_handler(void *param,int c,int count,int clock) |
| 86 | 86 | { |
| 87 | | ym2610_device *ym2610 = downcast<ym2610_device *>(param); |
| 87 | ym2610_device *ym2610 = (ym2610_device *) param; |
| 88 | 88 | ym2610->_timer_handler(c, count, clock); |
| 89 | 89 | } |
| 90 | 90 | |
| r22750 | r22751 | |
| 106 | 106 | /* update request from fm.c */ |
| 107 | 107 | void ym2610_update_request(void *param) |
| 108 | 108 | { |
| 109 | | ym2610_device *ym2610 = downcast<ym2610_device *>(param); |
| 109 | ym2610_device *ym2610 = (ym2610_device *) param; |
| 110 | 110 | ym2610->_ym2610_update_request(); |
| 111 | 111 | } |
| 112 | 112 | |