compute audio buffer size in code instead of in script