Search guides and the APICtrl K
  1. API reference
  2. System, devices and network

asio_format.h

ASIO sample formats, and the conversion to and from them.

#include <sonore/asio_format.h>
On this page

Design notes

Why this is its own header

audio_asio.h is entirely inside #if defined(_WIN32), because a driver vtable reached through CoCreateInstance cannot mean anything anywhere else. The FORMAT CONVERSION is not like that. It is integer arithmetic, it is the part most likely to be subtly wrong, and it is the part that produces a full-scale buzz rather than an error message when it is. Leaving it inside the guard would mean the only machine able to test it is the only machine with the hardware -- which is the same as saying it is never tested.

So it lives here, compiled everywhere, exercised by the round-trip test on both legs of the gate. audio_asio.h includes this and calls into it; there is one copy of each conversion, and the copy is the one under test.

No Steinberg code. The type CODES are numbers stated in the published ASIO documentation -- the same category of fact as an HTTP status code -- and everything else here is written from the format names.

Functions 8

Constants 17

↑↓ to move↵ to openEvery public name in the headers, and every guide