Home » Questions » Playing at original frequency despite changing channel freq.

0

0

I’ve tested this out using a small 1-second sine wave at 440hz, and changing the frequencies of all the other channels based on this frequency. I use 96 channels, with each channel representing a note (from 1 to 96, with each octave having 12 notes).

It doesn’t seem to work, the sound plays and loops correctly, but it’s always at the original frequency (440Hz) and doesn’t play with a different frequency. This is on an iPaq 1940 with PocketPC 2003, if this information helps.

I almost always get a click when I turn the sound off for a channel, I even tried turning down the volume before stopping the sound, but that doesn’t work. I’ve even tried changing the volume by looping from 255 to 1, but still I get a click. Is there a way to eliminate the click since I plan on using this for musical purposes?

Am I doing anything wrong?

I’m also using the FSOUND_PlaySoundEx() call and not the FSOUND_PlaySound() call since I believe the latter only plays the sample at the original frequency.