audiotrack: clip the buffer size