Previous 199869 Revisions Next

r22751 Friday 10th May, 2013 at 21:19:53 UTC by smf
fixed debug build (nw)
[src/emu/sound]2610intf.c

trunk/src/emu/sound/2610intf.c
r22750r22751
1818
1919static void psg_set_clock(void *param, int clock)
2020{
21   ym2610_device *ym2610 = downcast<ym2610_device *>(param);
21   ym2610_device *ym2610 = (ym2610_device *) param;
2222   ay8910_set_clock_ym(ym2610->_psg(), clock);
2323}
2424
2525static void psg_write(void *param, int address, int data)
2626{
27   ym2610_device *ym2610 = downcast<ym2610_device *>(param);
27   ym2610_device *ym2610 = (ym2610_device *) param;
2828   ay8910_write_ym(ym2610->_psg(), address, data);
2929}
3030
3131static int psg_read(void *param)
3232{
33   ym2610_device *ym2610 = downcast<ym2610_device *>(param);
33   ym2610_device *ym2610 = (ym2610_device *) param;
3434   return ay8910_read_ym(ym2610->_psg());
3535}
3636
3737static void psg_reset(void *param)
3838{
39   ym2610_device *ym2610 = downcast<ym2610_device *>(param);
39   ym2610_device *ym2610 = (ym2610_device *) param;
4040   ay8910_reset_ym(ym2610->_psg());
4141}
4242
r22750r22751
5757/* IRQ Handler */
5858static void IRQHandler(void *param,int irq)
5959{
60   ym2610_device *ym2610 = downcast<ym2610_device *>(param);
60   ym2610_device *ym2610 = (ym2610_device *) param;
6161   ym2610->_IRQHandler(irq);
6262}
6363
r22750r22751
8484
8585static void timer_handler(void *param,int c,int count,int clock)
8686{
87   ym2610_device *ym2610 = downcast<ym2610_device *>(param);
87   ym2610_device *ym2610 = (ym2610_device *) param;
8888   ym2610->_timer_handler(c, count, clock);
8989}
9090
r22750r22751
106106/* update request from fm.c */
107107void ym2610_update_request(void *param)
108108{
109   ym2610_device *ym2610 = downcast<ym2610_device *>(param);
109   ym2610_device *ym2610 = (ym2610_device *) param;
110110   ym2610->_ym2610_update_request();
111111}
112112

Previous 199869 Revisions Next


© 1997-2024 The MAME Team