This restriction should be removed by flushing the remaining data from the sample buffer when the recording ends.