ConsoleTom
Member
Hi !
I would like to create an array that contains sounds. Now i have a Snaredrum-Sample in an Array
unsigned short SnareDrum[20000] = {x SampleData for 1 Snaredrum x};
then i would play it like this:
GpPcmPlay((unsigned short*)SnareDrum,sizeof(SnareDrum),0);
but what i need is an array - for example 5 x 20000.
The Play Routine should work like this
GpPcmPlay((unsigned short*)SnareDrum[2],sizeof(SnareDrum[2]),0);
How do i declare it ?
Greetings
Tobias
I would like to create an array that contains sounds. Now i have a Snaredrum-Sample in an Array
unsigned short SnareDrum[20000] = {x SampleData for 1 Snaredrum x};
then i would play it like this:
GpPcmPlay((unsigned short*)SnareDrum,sizeof(SnareDrum),0);
but what i need is an array - for example 5 x 20000.
The Play Routine should work like this
GpPcmPlay((unsigned short*)SnareDrum[2],sizeof(SnareDrum[2]),0);
How do i declare it ?
Greetings
Tobias