make sure that the AudioRingBuffer exists before trying to use it
Merge pull request #260 from birarda/mixer-crash

more fixes for audio mixer crashing: