public dkong_state(machine_config mconfig, device_type type, string tag) : base(mconfig, type, tag) { m_maincpu = new required_device <cpu_device>(this, "maincpu"); m_soundcpu = new optional_device <mcs48_cpu_device>(this, "soundcpu"); m_eeprom = new optional_device <eeprom_serial_93cxx_device>(this, "eeprom"); m_dev_n2a03a = new optional_device <intref>(this, "n2a03a"); m_dev_n2a03b = new optional_device <intref>(this, "n2a03b"); m_dev_vp2 = new optional_device <latch8_device>(this, "virtual_p2"); m_dev_6h = new optional_device <latch8_device>(this, "ls259.6h"); m_ls175_3d = new optional_device <latch8_device>(this, "ls175.3d"); m_discrete = new optional_device <discrete_device>(this, "discrete"); m_m58817 = new optional_device <intref>(this, "tms"); m_watchdog = new optional_device <watchdog_timer_device>(this, "watchdog"); m_video_ram = new required_shared_ptr_uint8_t(this, "video_ram"); m_sprite_ram = new required_shared_ptr_uint8_t(this, "sprite_ram"); m_snd_rom = new optional_region_ptr_uint8_t(this, "soundcpu"); m_vidhw = DKONG_BOARD; m_sig30Hz = 0; m_blue_level = 0; m_cv1 = 0; m_cv2 = 0; m_vg1 = 0; m_vg2 = 0; m_vg3 = 0; m_cv3 = 0; m_cv4 = 0; m_gfxdecode = new required_device <gfxdecode_device>(this, "gfxdecode"); m_screen = new required_device <screen_device>(this, "screen"); m_palette = new required_device <palette_device>(this, "palette"); m_z80dma = new optional_device <intref>(this, "z80dma"); m_dma8257 = new optional_device <i8257_device>(this, "dma8257"); }
public ListBase <int16_t> [] m_waveform = new ListBase <int16_t> [MAX_VOLUME]; //int16_t *m_waveform[MAX_VOLUME]; public namco_audio_device(machine_config mconfig, device_type type, string tag, device_t owner, UInt32 clock) : base(mconfig, type, tag, owner, clock) { //m_class_interfaces.Add(new device_sound_interface(mconfig, this)); // device_sound_interface(mconfig, *this), m_wave_ptr = new optional_region_ptr_uint8_t(this, DEVICE_SELF); m_last_channel = null; m_soundregs = null; m_wavedata = null; m_wave_size = 0; m_sound_enable = false; m_stream = null; m_namco_clock = 0; m_sample_rate = 0; m_f_fracbits = 0; m_voices = 0; m_stereo = false; for (int i = 0; i < m_channel_list.Length; i++) { m_channel_list[i] = new sound_channel(); } }