diff options
| author | Marcus Tomlinson <themarcustomlinson@gmail.com> | 2014-04-18 16:03:11 +0200 |
|---|---|---|
| committer | Marcus Tomlinson <themarcustomlinson@gmail.com> | 2014-04-18 16:03:11 +0200 |
| commit | 27d53f8096cd5e531f74862b953f12ff8d21c76a (patch) | |
| tree | 584631a306c4f6c5aa967d1e68b108f1ac1f0f82 /RtAudio.cpp | |
| parent | 8b7653b945cbe09610a6cd5902f439873db0d18e (diff) | |
Support all sample rates for WASAPI
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
|
