AudioSampleBuffer Question?

I’m trying to create 24 AudioSampleBuffers but having no luck

[code]AudioSampleBuffer *channels[24];

for(int i=0;i<24;i++){
channels[i] = new AudioSampleBuffer(2,buffer.getNumSamples());

//Do some stuff

//Delete the AudioSampleBuffer Channels[/code]

This compiles ok, but crashes, any ideas?

If you try to copy an out-of-range section of the data, it should be throwing an assertion to help show you what you’re doing wrong…

Thanx jules got it sorted, the problem was actually somewhere else.