Browse Source

Use audio device's preferred sample rate by default in RtAudioDevice.

tags/v2.0.6
Andrew Belt 2 years ago
parent
commit
6ae7fe0521
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      src/rtaudio.cpp

+ 1
- 2
src/rtaudio.cpp View File

@@ -102,8 +102,7 @@ struct RtAudioDevice : audio::Device {
options.numberOfBuffers = 2;
options.streamName = "VCV Rack";

// Most people prefer 44100 default sample rate although many devices report 48000 from `deviceInfo.preferredSampleRate`.
float closestSampleRate = 44100;
float closestSampleRate = deviceInfo.preferredSampleRate;
if (sampleRate > 0) {
// Find the closest sample rate to the requested one.
for (float sr : deviceInfo.sampleRates) {


Loading…
Cancel
Save