trunk/src/emu/sound/sid6581.c
| r17982 | r17983 | |
| 90 | 90 | : device_t(mconfig, SID6581, "SID6581", tag, owner, clock), |
| 91 | 91 | device_sound_interface(mconfig, *this) |
| 92 | 92 | { |
| 93 | | m_token = global_alloc_array_clear(UINT8, sizeof(SID6581)); |
| 93 | m_token = global_alloc_clear(SID6581_t); |
| 94 | 94 | } |
| 95 | 95 | sid6581_device::sid6581_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) |
| 96 | 96 | : device_t(mconfig, type, name, tag, owner, clock), |
| 97 | 97 | device_sound_interface(mconfig, *this) |
| 98 | 98 | { |
| 99 | | m_token = global_alloc_array_clear(UINT8, sizeof(SID6581)); |
| 99 | m_token = global_alloc_clear(SID6581_t); |
| 100 | 100 | } |
| 101 | 101 | |
| 102 | 102 | //------------------------------------------------- |
trunk/src/emu/sound/sid6581.h
| r17982 | r17983 | |
| 29 | 29 | devcb_read8 in_poty_cb; |
| 30 | 30 | }; |
| 31 | 31 | |
| 32 | struct SID6581_t; |
| 33 | |
| 32 | 34 | class sid6581_device : public device_t, |
| 33 | | public device_sound_interface |
| 35 | public device_sound_interface |
| 34 | 36 | { |
| 35 | 37 | public: |
| 36 | 38 | sid6581_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| r17982 | r17983 | |
| 53 | 55 | virtual void sound_stream_update(sound_stream &stream, stream_sample_t **inputs, stream_sample_t **outputs, int samples); |
| 54 | 56 | private: |
| 55 | 57 | // internal state |
| 56 | | void *m_token; |
| 58 | SID6581_t *m_token; |
| 57 | 59 | }; |
| 58 | 60 | |
| 59 | 61 | extern const device_type SID6581; |