[Openal-devel] Grey Noise
Jason Daly
jdaly at ist.ucf.edu
Mon Mar 30 12:43:37 PDT 2009
Alfred Hawk wrote:
> Hi there,
>
> I need to generate grey noise in openal but don't think there is any
> predefined way of doing it. Only white noise can be generated in
> openal but what about grey and pink noise. Is there any way to do it.
> If I generate by using just 'C' then after loading it in openal
> buffer, while playing I experience clicking. Thank you for help in
> advance.
Neither OpenAL nor ALUT can generate grey or pink noise.
With your own noise buffer, you're probably getting clicking because the
sample at the end of your buffer doesn't match up with the sample at the
beginning (even noise has to have continuous samples).
If you were generating sine waves, I'd tell you to make sure you size
your buffer as a function of the frequency (so the samples at the
beginning and end were both near zero), but I'm not sure what to suggest
with a noise waveform (I don't know what parameters go into a particular
noise function).
--"J"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://opensource.creative.com/pipermail/openal-devel/attachments/20090330/cc59c950/attachment.html
More information about the Openal-devel
mailing list