PortAudio.jl does not work well with Gtk.jl

Hi, I am trying to develop a gui app for real time audio processing using PortAudio.jl and Gtk.jl. The following code is for just recording and playing back.

using PortAudio
# using Gtk

stream = PortAudioStream(1, 2)

println("recording")
sig_in = read(stream, 51200) 

println("playing back")
write(stream, sig_in)

However, using Gtk makes recording and playback take too much longer than it should. Recorded data looks fine, but it’s breaking up when played back.
How do I fix this problem?

Make sure you have the most recent version with these changes:
https://github.com/JuliaGraphics/Gtk.jl/pull/521
If that’s still laggy, you may want to take a look at other GUIs…
Makie could work for simple stuff :wink: