AudioSampleBuffer wasn’t allocating enough memory for my fairly large buffers (75MB - I’m keeping a whole CD track in memory at one time) - juce_malloc returned NULL - so in fear and trepidation I went to using malloc which is seeming to work.
What’s likely to happen if I just use raw malloc? Is it just “paging and a gap in my audio” (which I can certainly live with in this version?) On modern systems, shouldn’t we be able to request “as much memory as we want” to more or less the limit of the swap partition - if we don’t mind the occasional paging?
juce_malloc normally just calls straight through to the normal malloc - but are you using Windows in debug mode? If so, it’s probably using the MS debug malloc, so that might be the reason it’s crapping out with large sizes?