adds pass-through read/write methods to PortAudioStream
This commit is contained in:
parent
8a3bebff2c
commit
096cfd49da
1 changed files with 4 additions and 0 deletions
|
@ -175,6 +175,10 @@ Base.isopen(stream::PortAudioStream) = stream.stream != C_NULL
|
|||
|
||||
SampleTypes.samplerate(stream::PortAudioStream) = stream.samplerate
|
||||
|
||||
Base.read(stream::PortAudioStream, args...) = read(stream.source, args...)
|
||||
Base.read!(stream::PortAudioStream, args...) = read!(stream.source, args...)
|
||||
Base.write(stream::PortAudioStream, args...) = write(stream.sink, args...)
|
||||
|
||||
function Base.show(io::IO, stream::PortAudioStream)
|
||||
println(typeof(stream))
|
||||
println(" Samplerate: ", samplerate(stream))
|
||||
|
|
Loading…
Reference in a new issue