I'd like to create a synth app which receives midi input from a usb keyboard and produces sound output on the speakers, while i'd use GTK for the UI.
What can i use to accomplish this (alsa? pulseaudio?). Where can i find tutorials? How to make sure to avoid busy wait or blocking the GTK main loop?