kvm/internal/audio
Alex P 1d1658db15 refactor(audio): replace GetConfig() calls with direct Config access
This change replaces all instances of GetConfig() function calls with direct access to the Config variable throughout the audio package. The modification improves performance by eliminating function call overhead and simplifies the codebase by removing unnecessary indirection.

The commit also includes minor optimizations in validation logic and connection handling, while maintaining all existing functionality. Error handling remains robust with appropriate fallbacks when config values are not available.

Additional improvements include:
- Enhanced connection health monitoring in UnifiedAudioClient
- Optimized validation functions using cached config values
- Reduced memory allocations in hot paths
- Improved error recovery during quality changes
2025-09-08 17:30:49 +00:00
..
adaptive_buffer.go refactor(audio): replace GetConfig() calls with direct Config access 2025-09-08 17:30:49 +00:00
audio_mute.go [WIP] Improvements: improve Audio Input Activation / Deactivation process so it is faster 2025-09-07 16:17:06 +00:00
batch_audio.go refactor(audio): replace GetConfig() calls with direct Config access 2025-09-08 17:30:49 +00:00
batch_reference.go feat(audio): implement zero-copy batch processing with reference counting 2025-09-08 09:08:07 +00:00
batch_zero_copy.go refactor(audio): replace GetConfig() calls with direct Config access 2025-09-08 17:30:49 +00:00
cgo_audio.go feat(audio): implement zero-copy batch processing with reference counting 2025-09-08 09:08:07 +00:00
core_config.go refactor(audio): replace GetConfig() calls with direct Config access 2025-09-08 17:30:49 +00:00
core_config_constants.go refactor(audio): replace GetConfig() calls with direct Config access 2025-09-08 17:30:49 +00:00
core_handlers.go refactor(audio): replace mute functionality with start/stop for microphone 2025-09-07 18:32:42 +00:00
core_metrics.go [WIP] Updates: Reduce PR complexity 2025-09-05 21:47:21 +00:00
core_metrics_registry.go [WIP] Updates: Reduce PR complexity 2025-09-05 21:47:21 +00:00
core_validation.go refactor(audio): replace GetConfig() calls with direct Config access 2025-09-08 17:30:49 +00:00
goroutine_pool.go refactor(audio): replace GetConfig() calls with direct Config access 2025-09-08 17:30:49 +00:00
input_api.go Fix: linting errors 2025-08-22 22:07:35 +00:00
input_microphone_manager.go refactor(audio): replace GetConfig() calls with direct Config access 2025-09-08 17:30:49 +00:00
input_server_main.go refactor(audio): replace GetConfig() calls with direct Config access 2025-09-08 17:30:49 +00:00
input_supervisor.go refactor(audio): replace GetConfig() calls with direct Config access 2025-09-08 17:30:49 +00:00
ipc_common.go refactor(audio): replace GetConfig() calls with direct Config access 2025-09-08 17:30:49 +00:00
ipc_input.go refactor(audio): replace GetConfig() calls with direct Config access 2025-09-08 17:30:49 +00:00
ipc_output.go refactor(audio): replace GetConfig() calls with direct Config access 2025-09-08 17:30:49 +00:00
ipc_unified.go refactor(audio): replace GetConfig() calls with direct Config access 2025-09-08 17:30:49 +00:00
mgmt_base_manager.go [WIP] Updates / FIles reorg: reduce PR complexity 2025-09-05 21:34:23 +00:00
mgmt_base_supervisor.go refactor(audio): consolidate supervision logic into base implementation 2025-09-08 05:53:06 +00:00
mgmt_input_ipc_manager.go refactor(audio): replace GetConfig() calls with direct Config access 2025-09-08 17:30:49 +00:00
mgmt_output_ipc_manager.go refactor(audio): replace GetConfig() calls with direct Config access 2025-09-08 17:30:49 +00:00
mic_contention.go refactor(audio): replace GetConfig() calls with direct Config access 2025-09-08 17:30:49 +00:00
monitor_adaptive_optimizer.go refactor(audio): replace GetConfig() calls with direct Config access 2025-09-08 17:30:49 +00:00
monitor_goroutine.go refactor(audio): replace GetConfig() calls with direct Config access 2025-09-08 17:30:49 +00:00
monitor_latency.go refactor(audio): replace GetConfig() calls with direct Config access 2025-09-08 17:30:49 +00:00
monitor_process.go refactor(audio): replace GetConfig() calls with direct Config access 2025-09-08 17:30:49 +00:00
output_server_main.go refactor(audio): replace GetConfig() calls with direct Config access 2025-09-08 17:30:49 +00:00
output_streaming.go refactor(audio): replace GetConfig() calls with direct Config access 2025-09-08 17:30:49 +00:00
output_supervisor.go refactor(audio): replace GetConfig() calls with direct Config access 2025-09-08 17:30:49 +00:00
quality_presets.go refactor(audio): replace GetConfig() calls with direct Config access 2025-09-08 17:30:49 +00:00
relay_api.go feat(audio): improve audio quality handling and recovery mechanisms 2025-09-08 12:48:22 +00:00
session_provider.go [WIP] Cleanup: Reduce PR Complexity 2025-09-04 22:06:48 +00:00
sized_buffer_pool.go feat(audio): implement sized buffer pool and config caching 2025-09-03 14:00:12 +00:00
socket_buffer.go refactor(audio): replace GetConfig() calls with direct Config access 2025-09-08 17:30:49 +00:00
supervisor_api.go [WIP] Cleanup: Reduce PR Complexity 2025-09-04 22:06:48 +00:00
util_buffer_pool.go refactor(audio): replace GetConfig() calls with direct Config access 2025-09-08 17:30:49 +00:00
util_env.go refactor(audio): replace GetConfig() calls with direct Config access 2025-09-08 17:30:49 +00:00
webrtc_relay.go refactor(audio): replace GetConfig() calls with direct Config access 2025-09-08 17:30:49 +00:00
websocket_events.go refactor(audio): replace GetConfig() calls with direct Config access 2025-09-08 17:30:49 +00:00
zero_copy.go refactor(audio): replace GetConfig() calls with direct Config access 2025-09-08 17:30:49 +00:00