| 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()); |
nothing calls this directly
no outgoing calls
no test coverage detected