# Android/Oboe Buffer Sizes

**URL:** <https://forum.juce.com/t/android-oboe-buffer-sizes/35354>\
**Category:** Android\
**Created:** [September 23, 2019, 3:09pm UTC](https://forum.juce.com/t/android-oboe-buffer-sizes/35354 "2019-09-23T15:09:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![garrilla](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/garrilla/32/103_2.png) [@garrilla](https://forum.juce.com/u/garrilla)\
**Post date:** [September 23, 2019, 3:09pm UTC](https://forum.juce.com/t/android-oboe-buffer-sizes/35354/1 "2019-09-23T15:09:04Z")

</div>

I know bufferSizes are an expected value and can change, but I have a condition where in the `prepareToPlay` method the size is 1440 but in the `getNextAudioBlock` it is 240.

The 240 is great, as I want as lowLatency as possible… but why the 1440 first?

And what, if anything can I do about this except structure my code to avoid the mismatch down the line?

cc @Don_Turner

a quick update to this, this 1440 comes from `device->getCurrentBufferSizeSamples()` which is called and used as the parameter when i initiate the `prepareToPlay`

further edit: when this changes, is possible to get notified in juce?

---

<div class="post-metadata">

**Author:** ![adamwilson](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/adamwilson/32/1387_2.png) [@adamwilson](https://forum.juce.com/u/adamwilson)\
**Post date:** [November 8, 2019, 1:20pm UTC](https://forum.juce.com/t/android-oboe-buffer-sizes/35354/2 "2019-11-08T13:20:16Z")

</div>

+1 for this - currently I have to query Android via JNI to know the buffer size before the audio thread starts from [PROPERTY\_OUTPUT\_FRAMES\_PER\_BUFFER](https://developer.android.com/reference/android/media/AudioManager#PROPERTY_OUTPUT_FRAMES_PER_BUFFER)
