improved handling of number of OpenSL buffers