AE: Set buffer and period size and only period size if the latter fails