0
0

So, what to say, i use the code below to play a file in a loop, but evrytime when the sound ends there is a “crackling” noise, not very long or intensive, but it is there and should not ;).

so, any ideas how to solve ?

[code:3dor1sng]bool __fastcall howlingSound::play (char * fileName) {
this->stop();

if (this->check (FMOD_System_CreateStream(this->system, fileName, FMOD_SOFTWARE | FMOD_LOOP_NORMAL, 0, &this->sound), "FMOD_System_CreateSound")) {
    this->check (FMOD_Sound_SetMode(sound, FMOD_LOOP_NORMAL));
    if (this->check (FMOD_System_PlaySound(this->system, FMOD_CHANNEL_FREE, this->sound, 0, &this->channel), "FMOD_System_PlaySound")) {
        FMOD_System_Update(system);
        int playing;
        result = FMOD_Channel_IsPlaying(this->channel, &playing);
        this->check(result);

        return true;
    }
}

return false;

}[/code:3dor1sng]

  • You must to post comments
0
0

Good point, other sounds are working correctly ^^

Well than i’m going to talk to the sound creator instead 😉

Thx

PS: You’ve a good work done with FMOD.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.