public speaker_device(machine_config mconfig, string tag, device_t owner, u32 clock = 0) : base(mconfig, SPEAKER, tag, owner, clock) { m_class_interfaces.Add(new device_mixer_interface(mconfig, this)); m_dimixer = GetClassInterface <device_mixer_interface>(); m_x = 0; m_y = 0; m_z = 0; m_current_max = 0; m_samples_this_bucket = 0; }
// device-level overrides //------------------------------------------------- // device_start - handle device startup //------------------------------------------------- protected override void device_start() { base.device_start(); m_dimixer = GetClassInterface <device_mixer_interface>(); }