Update src/PortAudio.jl

Co-authored-by: Jeff Fessler <JeffFessler@users.noreply.github.com>
This commit is contained in:
bramtayl 2022-03-28 10:21:29 -04:00 committed by GitHub
parent e6a9e7e070
commit 056e88032d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -756,10 +756,10 @@ function PortAudioStream(
latency = output_device.output_bounds.high_latency
end
samplerate = if samplerate === nothing
output_device.default_sample_rate
else
float(samplerate)
end
output_device.default_sample_rate
else
float(samplerate)
end
else
throw(ArgumentError("Input or output must have at least 1 channel"))
end