fixes missing newline in stream printing

This commit is contained in:
Spencer Russell 2016-03-31 11:22:25 -04:00
parent 43292ccaf8
commit 2bda1cf25e

View file

@ -188,12 +188,10 @@ function Base.show(io::IO, stream::PortAudioStream)
println(io, " Samplerate: ", samplerate(stream)) println(io, " Samplerate: ", samplerate(stream))
print(io, " Buffer Size: ", stream.bufsize, " frames") print(io, " Buffer Size: ", stream.bufsize, " frames")
if nchannels(stream.sink) > 0 if nchannels(stream.sink) > 0
println() print(io, "\n ", nchannels(stream.sink), " channel sink: \"", stream.sink.name, "\"")
print(io, " ", nchannels(stream.sink), " channel sink: \"", stream.sink.name, "\"")
end end
if nchannels(stream.source) > 0 if nchannels(stream.source) > 0
println() print(io, "\n ", nchannels(stream.source), " channel source: \"", stream.source.name, "\"")
print(io, " ", nchannels(stream.source), " channel source: \"", stream.source.name, "\"")
end end
end end