Avoid using periods with PulseAudio, and add an option to specify its buffer length