[Openal-devel] Need help with clicking sound.

Alfred Hawk hkgi at hotmail.com
Tue Mar 10 06:23:20 PDT 2009


Hi,

Well somehow I have managed to get rid of the clicking. For each different buffer filled, I played using seperate sources. Now this works fine if I run on Opensuse in a PC whereas it fails i.e. produces clicking, if I run the code in my Notebook with Vista and Ubuntu, dual boot. Can anyone explain why this is so?
n.b I am using Linux.

Cheers,
A

> Date: Mon, 9 Mar 2009 23:27:50 -0400
> From: jdaly at ist.ucf.edu
> To: hkgi at hotmail.com
> CC: openal-devel at opensource.creative.com
> Subject: Re: [Openal-devel] Need help with clicking sound.
> 
> Alfred Hawk wrote:
> > //
> > This means that every time I change the frequency of the waveform I'll 
> > have to change buffersize, which is not less than a pain in the neck 
> > as complex sounds will be just different frequency waves overlaid on 
> > each other.
> 
> Well, as I said, OpenAL isn't really meant for what you're trying to 
> do.  I'm not familiar with the range of audio synthesis tools that are 
> available, or I'd probably recommend one.  You'll probably have fewer 
> headaches that way.
> 
> 
> > I personally think that it can be solved by using two buffers, as I 
> > have done. When one buffer ends the other start playing from the point 
> > where previous ended. For now, I have no idea what so ever how I will 
> > do this. Any suggestions!!!
> 
> That's certainly true, but you'll have to make sure that the amplitude 
> (sample value) at the end of the first buffer matches the start of the 
> second buffer, or you'll always have clicks.
> 
> >
> > Yes it is a good way of generating a waveform but I am not sure it 
> > will deal with low or high pass filters. 
> 
> There's also alutLoadMemoryWaveform, which simply creates an array of 
> samples containing the desired waveform.  You should be able to use that 
> with any filters you like, then pass the results to alBufferData().
> 
> 
> > Also I have tried this... The buffer doesn't automatically stops when 
> > the content in it is finished it stops after the duartion which is 
> > specified in the function.
> 
> I'm not sure what you mean.  The duration you give the function 
> specifies the content of the generated buffer, so yes, it will stop 
> after the specified duration.
> 
> --"J"

_________________________________________________________________
Free photo editing software from Windows Live . Try it now! 
http://clk.atdmt.com/UKM/go/134665240/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://opensource.creative.com/pipermail/openal-devel/attachments/20090310/37530635/attachment.html


More information about the Openal-devel mailing list