From c3570b0d077746bc5991d40163adfb96667dcbcb Mon Sep 17 00:00:00 2001 From: Jakub Wronowski Date: Tue, 18 Feb 2020 23:49:50 +0100 Subject: [PATCH] readme and script fix --- README.md | 2 +- examples/audiometer.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7d9ee9b..38e6fad 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/examples/audiometer.jl b/examples/audiometer.jl index 814d188..46c8465 100644 --- a/examples/audiometer.jl +++ b/examples/audiometer.jl @@ -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")