Pop and click with Audio
drazmo
Posts: 21
When I play audio there is an pop-click on startup and in some cases when the file is finished. I am working with wav files. I don't mind an initial power up pop but every time I play a wav sound it has the pop sound. If I play a wav file in a continuous loop then there is no pop sound. If there is just the slightest gap between the end and start of the file then you here the pop on start of the wav file and end of the wav file. I am using Rayman's SPIN WAV Player Ver. 1a. The pop sound is also present on startup if I run the singing demo. I have connected the board directly to a TV and most recently to a MAX4364 amp with built in pop-click suppression but the pop-click is still quite loud and very noticeable. I have looked through the forums and have seen different posts that mention the pop but no information on how to eliminate it. The HSS Demo doesn't appear to have this problem. I looked and there is a function "VolumeInterpol" that seems to be the way he eliminated the pop but I don't understand how it works since there is so much going on with the hss engine. I am using the Proto Board. Following the Propeller cookbook I connected a 200ohm resitor, .1uF capacitor and 10uf capacitor.
Comments
In the above code if I set FRQA to anything higher than $000F_FFFF then you hear the pop. I think you are on the right track but there seems to be something else I just can't grasp.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
http://www.rayslogic.com/propeller/Programming/dac/dac.htm
The SPIN loop is very tight, no room for anything extra...
If you have 1.58V before the audio starts, in most cases this is bad - the wav file should have a DC offset of 0V, so the pop you here is the the output changing from 1.58V to 0V. The output should always be at 0 when there is no audio, and most wav files should also have a DC offset of 0V
I hope this helps.
John
When the board starts up before the cap I am show 1.5v. Still get the pop on startup and when starting a new wav file.
Post Edited (drazmo) : 4/7/2008 8:58:15 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
I have been able to eliminate the pop when a file starts to play with this code right after the "setup" in the asm routine. The code was posted on a mono wav player in the forums I just adapted it.
The pop at the end of playback can be removed if I remove 1000 from the samples read from the header. With...
It seems to play the entire audio file and no pop at the end. I just don't understand...why? Any suggestions? Some files end without the pop and some due if I leave the samples alone. If I remove the 1000 then it works. I am using GoldWave to edit my wav files.