You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is not clear why FlexASIO is not using Pa_IsFormatSupported() instead, which is precisely aimed at this use case - for example the pa_devs PortAudio example uses it to… well, probe sample rates.
I suspect this was an oversight on my part - it's possible I didn't realize this PortAudio function existed when I wrote the code.
Using Pa_IsFormatSupported() might be less disruptive and more efficient than opening a stream.
The text was updated successfully, but these errors were encountered:
Since we are now using Pa_IsFormatSupported() instead of Pa_OpenStream()
to probe sample rates, we should be able to actually probe sample rates
even while an exclusive stream is running. Previously, we would just
report every sample rate as supported in this scenario.
See #188. Fixes#66 (differently)
Currently FlexASIO implements
CanSampleRate
by attempting to open an actual PortAudio stream and see what happens:FlexASIO/src/flexasio/FlexASIO/flexasio.cpp
Lines 658 to 660 in 57e14e8
It is not clear why FlexASIO is not using
Pa_IsFormatSupported()
instead, which is precisely aimed at this use case - for example thepa_devs
PortAudio example uses it to… well, probe sample rates.I suspect this was an oversight on my part - it's possible I didn't realize this PortAudio function existed when I wrote the code.
Using
Pa_IsFormatSupported()
might be less disruptive and more efficient than opening a stream.The text was updated successfully, but these errors were encountered: