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"
_______________________________________________
Openal-devel mailing list
Openal-devel@...
http://opensource.creative.com/mailman/listinfo/openal-devel