0
0

Hello!
I have a problem with samples I load in to FMOD with the parameter FSOUND_HW3D.
I load i like this:
switch(size)
{
case BITS_8:
if (bLooping)
sample = FSOUND_Sample_Load(FSOUND_FREE, strFileName.c_str(),
FSOUND_8BITS | FSOUND_LOOP_NORMAL | FSOUND_FORCEMONO | FSOUND_HW3D, 0);
else
sample = FSOUND_Sample_Load(FSOUND_FREE, strFileName.c_str(),
FSOUND_8BITS | FSOUND_FORCEMONO | FSOUND_HW3D, 0);
break;
case BITS_16:
if (bLooping)
sample = FSOUND_Sample_Load(FSOUND_FREE, strFileName.c_str(),
FSOUND_16BITS | FSOUND_LOOP_NORMAL | FSOUND_FORCEMONO | FSOUND_HW3D, 0);
else
sample = FSOUND_Sample_Load(FSOUND_FREE, strFileName.c_str(),
FSOUND_16BITS | FSOUND_FORCEMONO | FSOUND_HW3D, 0);
break;
}

and I play it like this:
FSOUND_PlaySound(FSOUND_FREE, (FSOUND_SAMPLE *)pSample);

Here is my problems:
1. When I change the volume the volume it seems to be at full volume when SetVolume(about 80). I read in the doc that the function SetVolume() is linear.

  1. I cant set paning at all.

  2. And I should at som effects to the sample. When I use FSOUND_ENABLEFX I can’t change the frequency nor play the same sample in parralell on two different channels.

Can some one help me? What can I do in another way or what am I doing wrong?

Is it possible to create Chorus with use of reverb?

Hans

  • You must to post comments
0
0

Thank you for your reply.
About the volume, I use the channel returned by playsound, then I try to set the volume. I have tried all the values between 0 and 255, but it doesn’t sound linear. The volume sounds like it is at maximum around 80, and values above this doesn’t affect it much.
About the two other questions, thanks for confirming my suspicions. I can now leave these problems behind.

  • You must to post comments
0
0

I’m using an sblive. I believe I have pretty recent drivers, but I can always see if there are any newer ones. Thanks for the info.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.