Update src/PortAudio.jl
Co-authored-by: Jeff Fessler <JeffFessler@users.noreply.github.com>
This commit is contained in:
parent
e6a9e7e070
commit
056e88032d
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue