MCPcopy Create free account
hub / github.com/VCVRack/Rack / RtAudioDriver

Method RtAudioDriver

src/rtaudio.cpp:31–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29 std::map<int, RtAudioDevice*> devices;
30
31 RtAudioDriver(RtAudio::Api api, std::string name) {
32 this->api = api;
33 this->name = name;
34
35 INFO("Creating RtAudio %s driver", name.c_str());
36 rtAudio = new RtAudio(api, [](RtAudioErrorType type, const std::string& errorText) {
37 WARN("RtAudio error %d: %s", type, errorText.c_str());
38 });
39
40 rtAudio->showWarnings(false);
41 }
42
43 ~RtAudioDriver() {
44 assert(devices.empty());

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected