AudioSampleBuffer and multichannel buffer


I finally got a multichannel/multi-buss AU running (will share the code as soon as i clean it) to notice i cant use more than 32(total) i/os. since my software needs 32 ind and 32 outs i did some investigation and found out:

in juce_AudioSampleBuffer.h

whenever i try to use more than 32 channels i get the following error:

FleXor(10755,0xb01b7000) malloc: *** error for object 0x1612b000: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug

i tried to change maxNumAudioSampleBufferChannels to 64 but it didn’t suffice… any hints would be lovely!


It must be caused by that maxNumAudioSampleBufferChannels value… Did you fully recompile juce after changing it? (Or rebuild the amalgamated file if you’re using that)?

w00p foolish me!

Worked right away. Thanks a bunch!

It’s annoying to have that hard-coded number in there, but it does make it easier to allocate/deallocate the buffers.