~/talk

Exploration of Strongly-typed Units in C++: A Case Study from Digital Audio

Talkat CppCon 2023 · on Wednesday, 2023-10-04· at 14:00· Maple 3/4/5, 6700 North Gaylord Rockies Boulevard· [rust]
slides:none on file

Shows adopting the mp‑units (P1935) approach to get type‑safe units beyond std::chrono, with concrete wins and limits: catches Mars‑scale unit errors and stopped a local bug that produced 30 seconds instead of 35 ms in a reverb tail; encodes beats/quarter‑notes, maps tempo to seconds, and models sample counts (44,100 / 48,000 Hz) so 512 samples → 11.61 ms at 44.1 kHz; uses validated non‑negative types, reinterpret_cast wrappers for float** host APIs, demos mostly work but decibel/log conversions need more design and some examples don’t compile yet.

AI-written summary · about

  1. 0:00Introduction
  2. 10:07Why units matter
  3. 20:39Digital audio units overview
  4. 36:56Nonlinear units and decibels
  5. 54:20Wrapping third-party APIs
  6. 59:57Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.