]> Repos - portaudio/commitdiff
increase upper limit for absurd sample rates from 200000 to 384000 Hz. via Richard...
authorrbencina <rbencina@0f58301d-fd10-0410-b4af-bbb618454e57>
Tue, 4 Dec 2012 18:39:48 +0000 (18:39 +0000)
committerrbencina <rbencina@0f58301d-fd10-0410-b4af-bbb618454e57>
Tue, 4 Dec 2012 18:39:48 +0000 (18:39 +0000)
src/common/pa_front.c
src/common/pa_hostapi.h

index 03b5fcfeeb211848dd482c5ad1e986fe6726960a..4e4bb6831b7e25615190b0d1c534c197cbe7f971 100644 (file)
@@ -824,7 +824,7 @@ static int SampleFormatIsValid( PaSampleFormat format )
         - if supplied its hostApi field matches the output device's host Api
  
     double sampleRate
-        - is not an 'absurd' rate (less than 1000. or greater than 200000.)
+        - is not an 'absurd' rate (less than 1000. or greater than 384000.)
         - sampleRate is NOT validated against device capabilities
  
     PaStreamFlags streamFlags
@@ -965,7 +965,7 @@ static PaError ValidateOpenStreamParameters(
     
     
     /* Check for absurd sample rates. */
-    if( (sampleRate < 1000.0) || (sampleRate > 200000.0) )
+    if( (sampleRate < 1000.0) || (sampleRate > 384000.0) )
         return paInvalidSampleRate;
 
     if( ((streamFlags & ~paPlatformSpecificFlags) & ~(paClipOff | paDitherOff | paNeverDropInput | paPrimeOutputBuffersUsingStreamCallback ) ) != 0 )
index 658ad5db94df076851d3a9472bb011a18d149a3e..54b527ea819f054bb48d10801c778878a67733d2 100644 (file)
@@ -264,7 +264,7 @@ typedef struct PaUtilHostApiRepresentation {
                 - if supplied its hostApi field matches the output device's host Api
  
             double sampleRate
-                - is not an 'absurd' rate (less than 1000. or greater than 200000.)
+                - is not an 'absurd' rate (less than 1000. or greater than 384000.)
                 - sampleRate is NOT validated against device capabilities
  
             PaStreamFlags streamFlags