0
0

I am trying to change the pitch and volume of a repeating short sample on the fly. I have been doing it as shown below and there is a crackling that seems to pop in randomly. This function is called every time:

[code:216dw58a]
{
if(!FSOUND_IsPlaying(channel))
channel = FSOUND_PlaySound(FSOUND_FREE, sine[0]);

if(this->vol!=FSOUND_GetVolume(channel))
    FSOUND_SetVolume(channel,this->vol);
if(this->vol!=FSOUND_GetFrequency(channel))
    FSOUND_SetFrequency(channel,this->freq);

FSOUND_SetLoopMode(channel,TRUE);

}
[/code:216dw58a]

any ideas on how to do this correctly?
XP
fmod library C++
Sound Blaster Audigy Sound Card

  • You must to post comments
0
0

To get a better result, using a dsp callback seems to be the solution but you ll have to change the pitch/vol by “hand” :)

  • You must to post comments
0
0

Ok callback sounds good but what do you mean “by hand”

  • You must to post comments
0
0

ok , thats a lot simpler … let me try

  • You must to post comments
0
0

That did it!
Discovering this library is amazing
Thanks Brett! ๐Ÿ˜€

  • You must to post comments
0
0

๐Ÿ˜ณ

  • You must to post comments
0
0

its all good because that look time into DSP for FMOD does sound interesting and poweful, maybe in the future ๐Ÿ˜ฎ

  • You must to post comments
Showing 6 results
Your Answer

Please first to submit.