0
0

hi,

i have problems concerning mono / stereo and channels.

i load a sample with fsound_sample_load, now i want to know
if its mono or stereo. i found fsound_sample_getmode, but
dont know how to use it.

if i request a pointer to the sound data of a sample using
fsound_sample_lock, how are stereo samples stored? 1 sample
left, 1 sample right? or an other way?

the last question i have now is a bit difficult to explain.
i load a stereo sample using fsound_sample load. i can
play it then on a channel with fsound_playsound. but does
a stereo sample not require 2 channels, 1 for left and 1 for
right.

please excuse my english and perhaps silly questions. i’ve
really searched the doc and the forum but all is still so confusing
to me, for i am a newbie, sorry and thank you.

  • You must to post comments
0
0

1)
unsigned int caps = FSOUND_Sample_GetMode(someSample);
if (caps & FSOUND_STEREO)
{ // sample is stereo }
else
{ // sample is mono }

2)
i believe it’s one sample left, one right, but i can be wrong.
Also take care of the sample size when writing directly into a buffer.

3)
FMOD plays a stereo sample in one channel. Every sound card can handle stereo samples, so there’s no need to split it up on two channels.

  • You must to post comments
0
0

ok, thx.

shadowthief.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.