increase upper limit for absurd sample rates from 200000 to 384000 Hz. via Richard from Audacity
This commit is contained in:
parent
b1f0cc8829
commit
33df37a804
2 changed files with 3 additions and 3 deletions
|
|
@ -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 )
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue