0
0

Hi. I am new to FMOD.

WINXP + Soundblaster Live Value

I need to play looping sound.
I loaded is as SAMPLE. If I play it normally, everything is ok, but if I stops the sound, I hear short scratch.
If I use FSOUND_HW3D, scratch when stopping is gone, but FSOUND_LOOP_NORMAL doesnot work?

Will useing stream help?
Thanks for advices

  • You must to post comments
0
0

I use something like that:

tsound::tsound(char* name){
sample = FSOUND_Sample_Load(FSOUND_FREE, name, FSOUND_NORMAL, 0, 0);
channel = -1;
};

void tsound::enable_loop(){
FSOUND_Sample_SetMode(sample, FSOUND_LOOP_NORMAL);
};

void tsound::play(){
channel = FSOUND_PlaySound(FSOUND_FREE, sample);
};

void tsound::stop(){
if(channel != -1){
FSOUND_StopSound(channel);
channel = -1;
}
};

In written order. I use it for engine sound of ship. When you press ThrustKey, I play sound, when you releases it, I stop it.
Everything works fine, but if I stop playing, at the end I can hear short scratch or click sound.
When I change this
tsound::tsound(char* name){
sample = FSOUND_Sample_Load(FSOUND_FREE, name, FSOUND_HW3D /HERE!/, 0, 0);
channel = -1;
};
scratch is gone, but loop doesnot work.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.