On Sunday 26 April 2009 12:40:18 pm Michael Buckley wrote:
> The first problem is that there is popping and chirping when the 3
> shortest sound effects play. These sound effects are loaded from WAV
> files, and all of them fade out over the length of the sound. That is,
> I am not using OpenAL to fade the sounds out, but that the amplitude
> of the sound wave decreases.
>
> One of these sounds is 0.2 seconds long. This sound has less problems
> than the other two. There is merely an audible pop or click when the
> sound finishes.
Hi.
How are the sound files loaded into memory? The only things I can think of to
cause the noise is either if:
It's part of the sound; either by junk at the end, or the waveform not ending
"cleanly", or..
It's being loaded incorrectly; sometimes .wav files will have extra chunks
after the sample data, so if care isn't taken to not read beyond the data
chunk, you can inadvertently read this errant data, or..
The specified size being given to alBufferData is too large; make sure the
size given is the size of the data chunk.
If you can, it may help if you can provide source for a small program that
shows the problem (along with the offending .wav files).
_______________________________________________
Openal mailing list
Openal@...
http://opensource.creative.com/mailman/listinfo/openal