/// <summary> /// Signs that the provider has been attached to the Spectrum virtual machine /// </summary> public override void OnAttachedToVm(ISpectrumVm hostVm) { base.OnAttachedToVm(hostVm); _beeperPars = hostVm.BeeperConfiguration; WaveFormat = WaveFormat.CreateIeeeFloatWaveFormat(_beeperPars.AudioSampleRate, 1); 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(); }