Mark ruby regex as UTF-8 for character class matching
Properly implement queue_size

I mixed up the difference between frames and samples.

sample_rate = how many samples are consumed per second PER CHANNEL
frame = N samples for N channels, e.g. two int16s for two channels

So, to buffer 1 second of audio, with a sample rate of 44.1kHz and
two channels of audio, you’ll need 44.1kHz * 2 channels number of
int16s, with results in 88200 int16s, but since you play all channels
in parallel it’s still just 1 second worth of audio.