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:
channel = FSOUND_PlaySound(FSOUND_FREE, sine);
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);
any ideas on how to do this correctly?
fmod library C++
Sound Blaster Audigy Sound Card
- yeahdixon asked 13 years ago
Please login first to submit.