/// <summary> /// Signs that the device has been attached to the Spectrum virtual machine /// </summary> public void OnAttachedToVm(ISpectrumVm hostVm) { HostVm = hostVm; _audioConfiguration = hostVm.AudioConfiguration; _beeperProvider = hostVm.BeeperProvider; _frameTacts = hostVm.FrameTacts; _tactsPerSample = _audioConfiguration.TactsPerSample; Reset(); }
/// <summary> /// Signs that the device has been attached to the Spectrum virtual machine /// </summary> public void OnAttachedToVm(ISpectrumVm hostVm) { HostVm = hostVm; _beeperConfiguration = hostVm.BeeperConfiguration; _beeperProvider = hostVm.BeeperProvider; _frameTacts = hostVm.FrameTacts; _tactsPerSample = _beeperConfiguration.TactsPerSample; Pulses = new List <EarBitPulse>(1000); Reset(); }