ossaudio: do not use global variables