diff options
Diffstat (limited to 'RtAudio.cpp')
| -rw-r--r-- | RtAudio.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/RtAudio.cpp b/RtAudio.cpp index 44cf4ed..43aaaa3 100644 --- a/RtAudio.cpp +++ b/RtAudio.cpp @@ -4096,18 +4096,9 @@ RtAudio::DeviceInfo RtApiWasapi::getDeviceInfo( unsigned int device ) // sample rates
info.sampleRates.clear();
- // allow support for sample rates that are multiples of the base rate
+ // allow support for all sample rates as we have a built-in sample rate converter
for ( unsigned int i = 0; i < MAX_SAMPLE_RATES; i++ ) {
- if ( SAMPLE_RATES[i] < deviceFormat->nSamplesPerSec ) {
- if ( deviceFormat->nSamplesPerSec % SAMPLE_RATES[i] == 0 ) {
- info.sampleRates.push_back( SAMPLE_RATES[i] );
- }
- }
- else {
- if ( SAMPLE_RATES[i] % deviceFormat->nSamplesPerSec == 0 ) {
- info.sampleRates.push_back( SAMPLE_RATES[i] );
- }
- }
+ info.sampleRates.push_back( SAMPLE_RATES[i] );
}
// native format
|
