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

Function rtaudioInit

src/rtaudio.cpp:337–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335
336
337void rtaudioInit() {
338 // Get RtAudio's driver list
339 std::vector<RtAudio::Api> apis;
340 RtAudio::getCompiledApi(apis);
341
342 for (const ApiInfo& apiInfo : API_INFOS) {
343 auto it = std::find(apis.begin(), apis.end(), apiInfo.rtApi);
344 if (it == apis.end())
345 continue;
346 // Create and add driver
347 RtAudioDriver* driver = new RtAudioDriver(apiInfo.rtApi, apiInfo.name);
348 audio::addDriver(apiInfo.driverId, driver);
349 }
350}
351
352} // namespace rack

Callers 1

mainFunction · 0.85

Calls 2

findFunction · 0.85
addDriverFunction · 0.70

Tested by

no test coverage detected