[Openal] Popping and Chirping When Playing Short Sounds on Windows
Chris Robinson
chris.kcat at gmail.com
Mon May 4 21:40:00 PDT 2009
On Monday 04 May 2009 9:06:57 pm Michael Buckley wrote:
> Hi, thank you for your prompt reply. I'm sorry I have not responded
> until now. In preparing some source code to respond to your message, I
> found that I was calling fread once after reaching the end of the
> file. I wasn't actually doing anything with the buffer I was storing
> the fread in, but, so I removed it. It eliminated the chirping, but
> not the popping.
>
> Considering that I was having some problems with fread on Windows
> before, I'm going to continue investigating to see if it's not
> OpenAL-related. If I can definitely rule out other possibilities, I
> will reply again with some source code illustrating the problem.
> Meanwhile, I have uploaded the problematic WAV files to
> http://angrymen.org/wav for anyone who is curious.
The waves work fine for me, using ALURE+OpenAL Soft and aplay (ALSA sound
player) in Linux.
Since you mentioned problems with fread on Windows, also double-check that
you're calling fopen with the "rb", or equivalent, mode. If you just use "r",
it will open the file in text mode which transforms \r\n sequences into \n,
and can mess up the returned data.
More information about the Openal
mailing list