Skip to content

Commit

Permalink
Update pa_front.c
Browse files Browse the repository at this point in the history
Increase max supported sample rate to 768000 Hz to address existence of the capable hardware (USB DACs and DAPs).
  • Loading branch information
dmitrykos authored and RossBencina committed Oct 10, 2022
1 parent b3f637f commit ed922d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/pa_front.c
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,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 384000.)
- is not an 'absurd' rate (less than 1000. or greater than 768000.)
- sampleRate is NOT validated against device capabilities
PaStreamFlags streamFlags
Expand Down Expand Up @@ -1003,7 +1003,7 @@ static PaError ValidateOpenStreamParameters(


/* Check for absurd sample rates. */
if( (sampleRate < 1000.0) || (sampleRate > 384000.0) )
if( (sampleRate < 1000.0) || (sampleRate > 768000.0) )
return paInvalidSampleRate;

if( ((streamFlags & ~paPlatformSpecificFlags) & ~(paClipOff | paDitherOff | paNeverDropInput | paPrimeOutputBuffersUsingStreamCallback ) ) != 0 )
Expand Down

0 comments on commit ed922d9

Please sign in to comment.