Hi. I am new to FMOD so forgive my ignorance in the following question. It’s regarding FMOD_Sound_Lock.
FMOD_RESULT FMOD_Sound_Lock(
FMOD_SOUND *sound,
unsigned int offset,
unsigned int length,
void **ptr1,
void **ptr2,
unsigned int *len1,
unsigned int *len2
);
For example I use the function
FMOD_Sound_GetLength(music, &length, FMOD_TIMEUNIT_PCM)
and it gives me length=100000 pcm samples.
Then I call the function again but with FMOD_TIMEUNIT_PCMBYTES.
FMOD_Sound_GetLength(music, &length_in_bytes, FMOD_TIMEUNIT_PCMBYTES)
It gives me the length*datawidth(number of bytes of each sample)*nm_channels.
Then I lock those samples
FMOD_Sound_Lock(music, 0, length_bytes_1, &ptr1, &ptr2, &length_bytes, &length_bytes)
My question is : If I have 2 channels which sample corresponds to what channel ??