Tags: diqezit/SpectrumNet
Tags
Feat(ControllerFactory): Implement with IOverlayManager Implement the complete ControllerFactory class, integrating the new IOverlayManager interface. This refactoring includes: - Centralized all overlay management logic within the OverlayManager. - Dependence on the IOverlayManager interface instead of a concrete implementation. - Cleaner code due to the removal of duplicated overlay operations. - Improved testability by allowing easy mocking of the interface. - A more asynchronous API for key overlay operations, enhancing UI responsiveness. - Refined resource disposal sequence, ensuring the OverlayManager is correctly handled first.
refactor: Improve Settings, Theme, and App Startup/Exit - Fix theme persistence: Prevent premature settings reset and ensure loaded theme applies correctly on startup. - Apply consistent refactoring across settings, theme, and app startup/exit logic: Use compact syntax, remove comments, integrate SmartLogger wrappers, and improve formatting/line breaks. - Resolve compiler issues related to nullability, initialization, and syntax errors in affected components.
refactor: Optimize ControllerFactory and fix spacebar toggle Overhauled ControllerFactory and input logic: - Implement Lazy loading for most controllers; InputController is now immediate. - Improve Dispose logic: split methods, better resource/exception handling, simplified methods. - Adapt properties and add access checks for lazy controllers; add placeholder initialization method. - Fix spacebar toggle: Add window KeyDown handler for direct processing. - Improve ToggleCaptureAsync logic for lazy AudioController interaction. - Enhance resource cleanup: event unsubscription, async InputController disposal.
- Refactored OnDataAvailable: explicit mono conversion & frame-based processing - Фnd optimized SpectrumAnalyzer.cs code with null checks , removing limitations imposed by Constants.MinFreq and Constants.MaxFreq. implement here also more accurate and robust bin calculation in ProcessScale, ensuring correct mapping of frequencies to spectrum bins for logarithmic and perceptual scales.
PreviousNext