Browse Source

Do not print misleading warning

Fixes #837

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.1-alpha2
falkTX 5 years ago
parent
commit
55610a296a
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 2 additions and 6 deletions
  1. +2
    -6
      source/modules/rtaudio/RtAudio.cpp

+ 2
- 6
source/modules/rtaudio/RtAudio.cpp View File

@@ -2049,7 +2049,7 @@ static int jackXrun( void *infoPointer )
}

bool RtApiJack :: probeDeviceOpen( unsigned int device, StreamMode mode, unsigned int channels,
unsigned int firstChannel, unsigned int sampleRate,
unsigned int firstChannel, unsigned int,
RtAudioFormat format, unsigned int *bufferSize,
RtAudio::StreamOptions *options )
{
@@ -2076,11 +2076,7 @@ bool RtApiJack :: probeDeviceOpen( unsigned int device, StreamMode mode, unsigne
}

// Check the jack server sample rate.
unsigned int jackRate = jackbridge_get_sample_rate( client );
if ( sampleRate != jackRate ) {
std::cerr << "RtApiJack::probeDeviceOpen: the requested sample rate (" << sampleRate << ") is different than the JACK server rate (" << jackRate << ")." << std::endl;
}
stream_.sampleRate = jackRate;
stream_.sampleRate = jackbridge_get_sample_rate( client );

// Get the latency of the JACK port.
const char **ports;


Loading…
Cancel
Save