readme and script fix
This commit is contained in:
parent
1fe68cf857
commit
c3570b0d07
2 changed files with 2 additions and 2 deletions
|
@ -11,7 +11,7 @@ PortAudio.jl is a wrapper for [libportaudio](http://www.portaudio.com/), which g
|
|||
The easiest way to open a source or sink is with the default `PortAudioStream()` constructor, which will open a 2-in, 2-out stream to your system's default device(s). The constructor can also take the input and output channel counts as positional arguments, or a variety of other keyword arguments.
|
||||
|
||||
```julia
|
||||
PortAudioStream(inchans=2, outchans=2; eltype=Float32, samplerate=48000Hz, blocksize=4096, synced=false)
|
||||
PortAudioStream(inchans=2, outchans=2; eltype=Float32, samplerate=48000Hz, latency=0.1, synced=false)
|
||||
```
|
||||
|
||||
You can open a specific device by adding it as the first argument, either as a `PortAudioDevice` instance or by name. You can also give separate names or devices if you want different input and output devices
|
||||
|
|
|
@ -3,7 +3,7 @@ using PortAudio
|
|||
"""Continuously read from the default audio input and plot an
|
||||
ASCII level/peak meter"""
|
||||
function micmeter(metersize)
|
||||
mic = PortAudioStream(1, 0; blocksize=512)
|
||||
mic = PortAudioStream(1, 0; latency=512)
|
||||
|
||||
signalmax = zero(eltype(mic))
|
||||
println("Press Ctrl-C to quit")
|
||||
|
|
Loading…
Reference in a new issue