windows phone 7 - Clicking at start and end of SoundEffect playback in WP7 XNA -


i'm looping sound file: http://engy.us/misc/thrusterloop.wav . plays in windows on number of players, when load in soundeffect in xna has these annoying clicks @ start , end of playback.

if loop while doesn't of these annoying clicks in middle. if play standalone sound, still click @ start. it's doing clicking both in emulator , on physical device.

why doing this? there wrong sound file? it's 16-bit stereo 44.1 khz pcm wav file, assumed pretty standard.

(edit2) captured sound produced through playback through xna , compared original waveform. take look:

http://engy.us/pics/waveform_original.png
http://engy.us/pics/waveform_emulatorxna.png

something pretty screwed playback! 2 large amplitude changes must have been clicks heard. seems scramble first bit somewhat. putting silence @ start helped people because scrambled silence doesn't produce clicks.

use program audacity take @ waveform of sound. can reduce or eliminate 'clicking' lining waveform starts , ends @ 0db mark (center line). in audacity can using fade in , fade out @ front , respectively, though cause volume of sound 'pulse'. around that, zoom in as possible , use fade in / out on smallest possible selectable area @ front , back.

one thing note want wave continue to... wave, when loops. in, if waveform pointing @ beginning of sound (it starts going 0db), should coming 0db below @ end, if copy+paste sound right after itself, forms nice wave instead of peak.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -