For a while now i’ve noticed clicking/popping throughout playback, and on some systems more than others (some not even at all). I’ve always thought this was just bad drivers, or high system load/3d apps, however of late i’ve noticed it more on my machine.
I think I’ve finally found a reproducible case.
It has to do with the process priority. If I set my process with a normal priority then the clicks are audible, but not nearly as much as on high, with the worst being on realtime.
However if I set it to Below normal, or Low, the clicks/pops disapear.
I can actually do this while the file is playing and the clicks/pops disapear almost as soon as the priority changes.
Unfortunately I wasn’t able to reproduce this on the examples, so its either something to do with my project, or perhaps something to do with multiple threads in the same process (Which might be stealing time?)
I used the WaveWriter feature to output exactly what fmod is outputting to 2 wav files, then encoded them as mp3 to save on space (the clicks are still reproduced in the mp3 as they are in the wave file)
I’ve uploaded the files for you to listen to:
The clicking version: [url:26kbg38w]http://www.r2.com.au/fmod/fmodoutput-clicks.mp3[/url:26kbg38w]
The non-clicking version: [url:26kbg38w]http://www.r2.com.au/fmod/fmodoutput-noclicks.mp3[/url:26kbg38w]
This is coming from the same file, all that has been changed is the process priority.
I’ve reproduced this on Windows XP, with an SB-Live card, as well as an onboard SoundMAX, on 2 different pc’s. Both pc’s have hyperthreading turned on.
I originally thought this was due to high load from other applications (as it does a similar thing when under high load), but after upping the process priority to high and noticing it more, it worried me.
What should be the fix for this? Is it something on my end that I should be taking care of, or is it some sort of weird bug in Fmod?
Let me know if you need any other information.
we have the clicking and popping effect too. not always but sometimes. where it often happens is when the mouse-over sound is played in menu system. last year brett told me this may have to do with dsound on win32 platform, so i switched all sounds to software mode and the problem still remained. however playing the ambient sounds ( 2d and 3d ) works fine without any clicking and popping.
another weird thing i experience now is that on my new ibm-notebook some sounds are played with a wrong pitch, it sounds if it would have been streched over time by factor 2.
- boto answered 12 years ago
The source format was a 128kb/44khz mp3 file. The clicking doesn’t exist in the original sound.
Uploaded here -> [url:32jcc8ft]http://www.r2.com.au/fmod/originalfile.mp3[/url:32jcc8ft] (2.15mb)
Another file that clicks (same album) -> [url:32jcc8ft]http://www.r2.com.au/fmod/anotherfile.mp3[/url:32jcc8ft] (5.71mb)
Completely different file, different artist and album -> [url:32jcc8ft]http://www.r2.com.au/fmod/differentfile.mp3[/url:32jcc8ft] (3.6mb)
I even tested the wave.mp3 in the examples/media directory, and it also clicks when its playing back. (when my player is on high/realtime priority)
I havn’t compared between Software/Hardware as I use Software for my player to ensure I get the visualisation output for all audio. If you want me to switch to Hardware, I will do so tonight and see if it still occurs.
I can reproduce the clicks in DirectSound, WaveOut and the Wave Writer.
I think that in some songs it is more apparent, or reproduces more frequently than in others. (depending on the volume of the song’s instruments, i guess). I.e. it’s not just one file, and I experience it from a range of files encoded with various encoders.
If I do set the priority of the entire process to low, when another process needs more cpu time, it causes the entire playback to falter completely, or stutter, which is not something I want, hence the reason I was using normal/above normal, and noticed that the clicking got worse.
If you are having difficulty reproducing perhaps I can send you the latest version of my player for you to attempt to reproduce it with.
We’re noticing similar clicks and pops in our game. Our files are not streaming, but loaded into memory, and we still get clicks and pops. This is with uncompressed 16-bit PCM wave files on a variety of sound cards (SB Live, NForce, Audigy). All our sounds are played through the software mixer. Haven’t tried the hardware mixer in a while.
Sometimes I even get a pop followed by several seconds of silence in one of the channels. If I record the output, the silence is actually a DC offset. The silence continues for 1-3 seconds, then pops back on and continues normally.
Please login first to submit.