# Can JUCE audio buffers not be separated by channels?

**URL:** <https://forum.juce.com/t/can-juce-audio-buffers-not-be-separated-by-channels/46070>\
**Category:** General JUCE discussion\
**Created:** [May 18, 2021, 3:27am UTC](https://forum.juce.com/t/can-juce-audio-buffers-not-be-separated-by-channels/46070 "2021-05-18T03:27:18Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![nicolasdanet](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/nicolasdanet/32/56_2.png) [@nicolasdanet](https://forum.juce.com/u/nicolasdanet)\
**Post date:** [May 18, 2021, 9:30am UTC](https://forum.juce.com/t/can-juce-audio-buffers-not-be-separated-by-channels/46070/7 "2021-05-18T09:30:28Z")

</div>

> The maximumExpectedSamplesPerBlock value is a strong hint about the maximum number of samples that will be provided in each block. You may want to use this value to resize internal buffers. You should program defensively in case a buggy host exceeds this value. The actual block sizes that the host uses may be different each time the callback happens: completely variable block sizes can be expected from some hosts.

Is it frequent to have an host that exceeds the block size value provided in `prepareToPlay`?

EDIT: Ok, i should have searched more… 🙄

> [@BlockSize and BufferSize](https://forum.juce.com/t/blocksize-and-buffersize/23204):
>
> I just wondered - Is there any guarantee that the size of the AudioSampleBuffer in AudioProcessor::ProcessBlock is always smaller or equal to the blocksize? I know it should be but I would like to be on the safe side. Thanks!

---

_[View the full topic](https://forum.juce.com/t/can-juce-audio-buffers-not-be-separated-by-channels/46070)._
