'Get the buffer size.'

def _get_buffer_size(self, buffer_size_sec=None):

    if (buffer_size_sec is None):
        buffer_size_sec = self.info.get('buffer_size_sec', 1.0)
    return int(np.ceil((buffer_size_sec * self.info['sfreq'])))
