Audio in standard C++
summary
Proposal argues C++ needs a minimal, standard low‑level audio I/O API and provides an R1 reference implementation (works on macOS now). It standardizes an audio buffer (2D frames×channels, interleaved or non‑interleaved) and an audio device with start/stop callbacks, templates for sample types, and driver tags. Real‑time constraints force lock‑free queues, no allocations in callbacks; typical settings are 44.1/48 kHz and 128‑frame buffers (ms latency tradeoff). Examples compile to white noise, sine, and a tiny synth, and the implementation runs.
AI-written summary · about
chapters (7)
- 0:00Introduction to audio in C++
- 10:15Fundamentals of digital audio
- 23:55Real-time audio constraints
- 36:11Motivation for standardizing
- 41:25Proposal for an audio API
- 50:18The proposed audio API design
- 1:13:01Future work and conclusions
related talks
51mGame Audio Programming in C++
46mDeveloping Audio Products with Cortex-M3/NuttX/C++11
29mWorking with C and C++ in Apple environment
01h 03mContemporary C++ in action
57mContemporary C++ in Action
01h 27mFile IO - Past, Present and Future
44mUsing Modern C++ In Anger
32mWhy and How to Roll Your Own std::function Implementation
