correctly calculate Max Samples in an audio buffer without requiring another data element