- sampleRateInHz
- the source sample rate expressed in Hz.
- channelConfig
- describes the configuration of the audio channels. See AudioFormat.CHANNEL_OUT_MONO and AudioFormat.CHANNEL_OUT_STEREO
- audioFormat
- the format in which the audio data is represented. See AudioFormat.ENCODING_PCM_16BIT and AudioFormat.ENCODING_PCM_8BIT, and AudioFormat.ENCODING_PCM_FLOAT.
Documentation for this section has not yet been entered.
Returns the minimum buffer size required for the successful creation of an AudioTrack object to be created in the AudioTrack.MODE_STREAM mode. Note that this size doesn't guarantee a smooth playback under load, and higher values should be chosen according to the expected frequency at which the buffer will be refilled with additional data to play. For example, if you intend to dynamically set the source sample rate of an AudioTrack to a higher value than the initial source sample rate, be sure to configure the buffer size based on the highest planned sample rate.