Skip to content

Commit d4bd9db

Browse files
committed
Improve audio capture reliability and remove soft-clipping
Refactor audio processing to enhance stability and code clarity: - Remove soft-clipping from audio capture pipeline - Fix hardware frame size calculation for variable sample rates - Add comprehensive error codes for audio initialization failures - Clear stop flags after cleanup to prevent initialization deadlocks - Improve mutex handling during device initialization - Simplify constant validation and remove redundant comments - Add DevPod setup instructions for Apple Silicon users - Enforce Go cache clearing in dev_deploy.sh for CGO reliability These changes improve audio capture stability when switching between HDMI and USB audio sources, and fix race conditions during device initialization and teardown.
1 parent 5ed7008 commit d4bd9db

File tree

4 files changed

+78
-139
lines changed

4 files changed

+78
-139
lines changed

DEVELOPMENT.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,21 @@ If you're using Windows, we strongly recommend using **WSL (Windows Subsystem fo
3131

3232
This ensures compatibility with shell scripts and build tools used in the project.
3333

34+
#### Using DevPod
35+
36+
**For Apple Silicon (M1/M2/M3/M4) Mac users:** You must set the Docker platform to `linux/amd64` before starting the DevPod container, as the JetKVM build system requires x86_64 architecture:
37+
38+
```bash
39+
export DOCKER_DEFAULT_PLATFORM=linux/amd64
40+
devpod up . --id kvm --provider docker --devcontainer-path .devcontainer/docker/devcontainer.json
41+
```
42+
43+
After the container starts, you'll need to manually install build dependencies:
44+
45+
```bash
46+
bash .devcontainer/install-deps.sh
47+
```
48+
3449
### Project Setup
3550

3651
1. **Clone the repository:**

0 commit comments

Comments
 (0)