take into account different sound card buffer sizes