trunk/src/emu/sound/ay8910.c
| r22784 | r22785 | |
| 730 | 730 | * |
| 731 | 731 | *************************************/ |
| 732 | 732 | |
| 733 | | void *ay8910_start_ym(void *infoptr, device_type chip_type, device_t *device, int clock, const ay8910_interface *intf) |
| 733 | void *ay8910_start_ym(device_t *device, const ay8910_interface *intf) |
| 734 | 734 | { |
| 735 | | ay8910_context *info = (ay8910_context *)infoptr; |
| 736 | | int master_clock = clock; |
| 735 | device_type chip_type = device->type(); |
| 736 | int master_clock = device->clock(); |
| 737 | 737 | |
| 738 | | if (info == NULL) |
| 739 | | info = auto_alloc_clear(device->machine(), ay8910_context); |
| 738 | ay8910_context *info = auto_alloc_clear(device->machine(), ay8910_context); |
| 740 | 739 | |
| 741 | 740 | info->device = device; |
| 742 | 741 | info->intf = intf; |
| r22784 | r22785 | |
| 946 | 945 | |
| 947 | 946 | const ay8910_interface *ay8910_config = m_ay8910_config != NULL ? m_ay8910_config : &default_ay8910_config; |
| 948 | 947 | |
| 949 | | m_psg = ay8910_start_ym(NULL, type(), this, clock(), ay8910_config); |
| 948 | m_psg = ay8910_start_ym(this, ay8910_config); |
| 950 | 949 | } |
| 951 | 950 | |
| 952 | 951 | //------------------------------------------------- |
| r22784 | r22785 | |
| 966 | 965 | |
| 967 | 966 | const ay8910_interface *ay8910_config = m_ay8910_config != NULL ? m_ay8910_config : &default_ay8910_config; |
| 968 | 967 | |
| 969 | | m_psg = ay8910_start_ym(NULL, type(), this, clock(), ay8910_config); |
| 968 | m_psg = ay8910_start_ym(this, ay8910_config); |
| 970 | 969 | } |
| 971 | 970 | |
| 972 | 971 | //------------------------------------------------- |