VCV Rack API v2
|
Abstraction for all audio drivers in Rack. More...
Classes | |
struct | Device |
A single audio device of a driver API. More... | |
struct | Driver |
Wraps an audio driver API containing any number of audio devices. More... | |
struct | Port |
A handle to a Device, typically owned by modules to have shared access to a single Device. More... | |
Functions | |
PRIVATE void | init () |
PRIVATE void | destroy () |
void | addDriver (int driverId, Driver *driver) |
Registers a new audio driver. | |
std::vector< int > | getDriverIds () |
Driver * | getDriver (int driverId) |
Abstraction for all audio drivers in Rack.
PRIVATE void rack::audio::init | ( | ) |
PRIVATE void rack::audio::destroy | ( | ) |
void rack::audio::addDriver | ( | int | driverId, |
Driver * | driver ) |
Registers a new audio driver.
Takes pointer ownership. Driver ID is stored in patches and must be unique. -1 is reserved.
std::vector< int > rack::audio::getDriverIds | ( | ) |
Driver * rack::audio::getDriver | ( | int | driverId | ) |