Browse Source

Only cache RtAudio device info for DirectSound, WASAPI, and ASIO.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
486015a587
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      src/rtaudio.cpp

+ 1
- 2
src/rtaudio.cpp View File

@@ -247,8 +247,7 @@ struct RtAudioDriver : audio::Driver {
rtAudio->showWarnings(false);

// Cache DeviceInfos for performance and stability (especially for ASIO).
// Cache all audio drivers for now.
if (true) {
if (api == RtAudio::WINDOWS_WASAPI || api == RtAudio::WINDOWS_ASIO || api == RtAudio::WINDOWS_DS) {
int count = rtAudio->getDeviceCount();
for (int deviceId = 0; deviceId < count; deviceId++) {
RtAudio::DeviceInfo deviceInfo = rtAudio->getDeviceInfo(deviceId);


Loading…
Cancel
Save