/// <summary> /// Puts the device in load mode. From now on, EAR pulses are played by a device /// </summary> private void EnterLoadMode() { _currentMode = TapeOperationMode.Load; var contentReader = ContentProvider?.GetTapeContent(); if (contentReader == null) { return; } // --- Play the content _tapePlayer = new CommonTapeFilePlayer(contentReader); _tapePlayer.ReadContent(); _tapePlayer.InitPlay(_cpu.Tacts); HostVm.BeeperDevice.SetTapeOverride(true); }
/// <summary> /// Puts the device in load mode. From now on, EAR pulses are played by a device /// </summary> private void EnterLoadMode() { _currentMode = TapeOperationMode.Load; EnteredLoadMode?.Invoke(this, EventArgs.Empty); var contentReader = TapeLoadLoadProvider?.GetTapeContent(); if (contentReader == null) { return; } // --- Play the content _tapePlayer = new CommonTapeFilePlayer(contentReader); _tapePlayer.ReadContent(); contentReader.Dispose(); _tapePlayer.InitPlay(_cpu.Tacts); HostVm.BeeperDevice.SetTapeOverride(true); }