# Developer Tools Reference Comprehensive reference for all developer tools in the project. --- ## Windows Cross-Compilation ```bash # Fetch dependencies ./scripts/fetch_win_deps.sh # Build Windows binary ./scripts/build_win.sh # Run with Wine ./scripts/run_win.sh ``` --- ## spectool (Audio Analysis) ```bash # Build cmake -S . -B build -DDEMO_BUILD_TOOLS=ON cmake --build build -j4 # Analyze WAV → .spec ./build/spectool analyze input.wav output.spec # Play .spec file ./build/spectool play input.spec ``` --- ## specview (Visualization) ```bash # View spectrogram ./build/specview input.spec ``` Displays spectrogram visualization. --- ## specplay (Diagnostic) ```bash # Analyze .spec file ./build/specplay input.spec # Or analyze .wav file ./build/specplay input.wav ``` Output: Peak, RMS, clipping detection. --- ## Code Coverage (macOS) ```bash # Install lcov brew install lcov # Generate coverage report ./scripts/gen_coverage_report.sh [target_dir] ``` Creates HTML coverage report. --- ## Submodule Updates ```bash cd third_party/wgpu-native git fetch git checkout trunk git reset --hard origin/trunk cd ../.. git add third_party/wgpu-native git commit -m "chore: Update wgpu-native" ``` Updates wgpu-native to latest trunk.