Move audio buffer setting to app