Alex P
08d073b1c9
Fix: linting errors
2025-08-24 23:36:29 +00:00
Alex P
7f8bee74ae
feat(audio): implement comprehensive audio optimization system
...
- Add AdaptiveOptimizer for real-time parameter adjustment based on latency metrics
- Add AdaptiveBufferConfig for dynamic buffer sizing based on system load
- Implement BatchAudioProcessor for reduced CGO call overhead
- Add AudioBufferPool with sync.Pool for optimized memory allocation
- Implement LatencyMonitor with exponential moving averages
- Add MemoryMetrics for comprehensive memory usage tracking
- Implement PriorityScheduler with SCHED_FIFO for real-time audio processing
- Add zero-copy operations to minimize memory copying in audio pipeline
- Enhance IPC architecture with intelligent frame dropping
- Add comprehensive Prometheus metrics for performance monitoring
- Implement triple-goroutine architecture for audio input processing
- Add adaptive buffering and performance feedback loops
2025-08-24 22:33:49 +00:00
Alex P
2c935c8487
refactor(audio): improve process monitoring with dynamic clock ticks
...
- Extract monitoring constants and configuration into centralized locations
- Implement dynamic clock ticks detection for more accurate CPU metrics
- Add warmup samples and bounds checking for CPU percentage calculation
- Replace hardcoded values with constants for better maintainability
2025-08-23 23:35:38 +00:00
Alex P
ee5cfbc224
refactor(audio): improve performance and simplify code structure
...
- Move audio server logic to dedicated package and simplify main.go
- Optimize buffer pool implementation and remove redundant logging
- Improve process monitoring with synchronized metrics updates
- Enhance microphone contention manager with simplified logic
- Replace mutex with atomic operations for metrics tracking
2025-08-23 22:54:01 +00:00
Alex P
b7599a4221
[WIP] Updates: audio output & input subprocesses memory & cpu usage
2025-08-23 21:51:24 +00:00
Alex P
782f15a742
[WIP] Updates: audio output & input subprocesses memory & cpu usage
2025-08-23 21:36:57 +00:00
Alex P
ad407a05ff
[WIP] Updates: audio output & input subprocesses memory & cpu usage
2025-08-23 21:19:28 +00:00
Alex P
b55235b640
[WIP] Updates: audio output & input subprocesses memory & cpu usage
2025-08-23 21:06:02 +00:00
Alex P
bdcfc29d70
refactor(audio): rename audio-server flag to audio-output-server for clarity
...
docs: update development documentation with new make targets
refactor: simplify audio quality presets implementation
style: remove redundant comments and align error handling
chore: add lint-ui-fix target to Makefile
2025-08-23 12:18:33 +00:00
Alex P
38b171d39f
feat(audio): add system memory endpoint and process metrics monitoring
...
- Add new /system/memory endpoint to expose total system memory
- Implement process metrics collection for audio and microphone processes
- Update UI to display real-time process metrics with charts
- Replace environment variable check with CLI flag for audio input server
- Improve audio metrics broadcasting with 1-second intervals
- Add memory usage capping for CPU percentage metrics
2025-08-23 11:41:03 +00:00
Alex P
390c929dda
Fix: go lint errors
2025-08-22 23:23:07 +00:00
Alex P
29e51ed50d
Improvements, Fixes: enhanced audio metrics (including prometheus format), fixed lint errors
2025-08-22 23:20:22 +00:00
Alex P
6e910cbe05
Fix: linter errors
2025-08-22 22:28:15 +00:00
Alex P
5d266f6103
Fix: linter errors
2025-08-22 22:26:15 +00:00
Alex P
cec27b054e
Fix: linter errors
2025-08-22 22:23:50 +00:00
Alex P
48f1750895
Fix: audio subprocess handling, avg atency audio metric
2025-08-22 22:21:41 +00:00
Alex P
e2a89c54d3
Fix: linting errors
2025-08-22 22:07:35 +00:00
Alex P
a4b3fe6e33
Fix: golangci-lint
2025-08-22 21:21:09 +00:00
Alex P
2de5a05aab
[WIP] Performance Enhancements: move audion processing into a separate process
2025-08-22 12:04:30 +00:00
Alex P
89555f1528
perf(audio): optimize audio processing with batching and atomic operations
...
- Implement batch audio processing to reduce CGO overhead
- Replace mutexes with atomic operations for contention management
- Add buffer pooling to reduce allocations
- Optimize microphone operation cooldown with lock-free approach
- Improve error handling with pre-allocated error objects
2025-08-13 14:49:08 +00:00
Alex P
483a7e2890
[WIP] Fix: performance issues
2025-08-13 11:35:11 +00:00
Alex P
807a9c3d24
build(audio): update cgo LDFLAGS to use env vars for library versions
2025-08-12 13:35:39 +00:00
Alex P
75a46e366c
Stability: prevent race condition when clicking on Mic Start, Stop buttons in quick succession
2025-08-05 09:02:21 +03:00
Alex P
4a3f1b76a9
Separation of Concerns: Move the audio-related code into the audio internal package
2025-08-05 02:04:37 +03:00
Alex P
bfbd8c11ce
Efficiency Improvements: Switch to websocket-based communication for audio metrics & status
2025-08-05 01:43:58 +03:00
Alex P
d4bde5f6bf
Finetuning: further perf. tunning
2025-08-05 01:05:06 +03:00
Alex P
a899a0e930
Improvements, Fixes: reduce mouse lag when audio is on
2025-08-04 23:29:47 +03:00
Alex P
d3dfb05198
[WIP] Updates: audio input support
2025-08-04 20:08:54 +03:00
Alex P
fee474bbf7
[ #315 ] Updates: add advanced audio support
2025-08-02 02:23:37 +00:00