I've looked into the sound problem on Ubuntu some. Seems to be that it's a bug in PulseAudio, but there's something about Allegro that triggers it far more often than most applications. And it is Allegro, not ZC; Allegro's sample programs are just as bad.
As a workaround, killing pulseaudio (pulseaudio --kill) fixes it.