this example requires OpenAL to play beeps,
so GCC commandline to compile it becomes:
gcc -lm `pkg-config --cflags --libs gtk+-3.0 openal` *.c