« Return to Thread: Need help with clicking sound.

RE: Need help with clicking sound.

by Alfred Hawk :: Rate this Message:

Reply to Author | View in Thread

Some parts of this message have been removed. Learn more about Nabble's security policy.
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@...
> To: hkgi@...
> CC: openal-devel@...
> 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"


Windows Live Messenger just got better. Find out more!
_______________________________________________
Openal-devel mailing list
Openal-devel@...
http://opensource.creative.com/mailman/listinfo/openal-devel

 « Return to Thread: Need help with clicking sound.