[Openal] Square wave with different frequencies

Jason Daly jdaly at ist.ucf.edu
Mon Sep 10 11:06:46 PDT 2007


etxmato wrote:
> I understood from the documentation that for white noise the frequency and
> phase are discarded, and for duration I have used 1 second (also tried a few
> higher values). The alutInit does not give any error and i use the same
> structure as for the square wave. If I replace the ALUT_WAVEFORM_WHITENOISE
> with ALUT_WAVEFORM_SQUARE I do get square wave sounds but with the
> WHITENOISE just some short 'tick'....
>
> Anyone any suggestions for what I might be doing wrong?
> Has anyone managed to run this with white noise?
>   

Sven would be the best guy to answer this...

I'm not sure what values you're using right now, but my best guess is 
that you may need to extend the duration (try at least one second, maybe 
more).

I don't know what else to suggest without diving into the code, and I 
don't have time to do that this week.

-- 

--"J"

"I'm a castaway stranded in a desolate land,
 I can see the footprints in the virtual sand."
	--Neil Peart



More information about the Openal mailing list