How sobmachine/audio-codec works
BLOS is a small single-file C audio codec. Its user workflow is command-line WAV encoding to .blos, or .blos decoding back to WAV. The graph separates the two directions and the major documented codec stages, while keeping implementation paths at the only source file. The excerpts show command dispatch and portions of encoding and decoding; some stage relationships are based on README descriptions rather than sampled call sites.
Main entry points: main.c Encode file
Components 11
Command interface
- CLI dispatch
src/main.c
Encoding
- Encode file
src/main.c - LPC analysis
src/main.c - Mid/side coding
src/main.c - Residual coding
src/main.c
Decoding
- Decode file
src/main.c - Frame reconstruction
src/main.c
Other components
- User
- WAV input
- BLOS stream
- WAV output
Connections 11
- User → CLI dispatch: invokes
README.md - CLI dispatch → Encode file: dispatches
src/main.c - CLI dispatch → Decode file: dispatches
src/main.c - WAV input → Encode file: reads
README.md - Encode file → LPC analysis: analyzes frames
README.md - Encode file → Mid/side coding: transforms stereo
README.md - Encode file → Residual coding: codes residuals
README.md - Encode file → BLOS stream: writes
src/main.c - BLOS stream → Decode file: reads
README.md - Decode file → Frame reconstruction: reconstructs frames
src/main.c - Decode file → WAV output: writes
README.md