[Openal] OpenAL + OpenGL Visualizations
E. Wing
ewmailing at gmail.com
Thu Oct 11 04:56:16 PDT 2007
Not really. You give OpenAL a buffer of data and it is free to
mutilate a copy of the data you provide. And OpenAL lacks an API to
supply you with a packet of data it is currently playing.
I think the general approach is you need to keep your own copy of the
data being played and your own timer to approximate where in the data
buffer OpenAL is currently in playback. Then you fetch the section of
data that correlates with the time and use that for your
visualization. If you are using OpenAL buffer queuing, the OpenAL APIs
may help you determine which buffer queue is playing, but if your
buffer samples are large enough, you still may need to fetch a subset
of that data via time correlation.
-Eric
On 10/10/07, Don Olmstead <don.j.olmstead at gmail.com> wrote:
> Hi all,
>
> I'm a newcomer to OpenAL and wanted to learn it by creating a simple
> music player that uses OpenGL to create a simple graphical eq. Is there
> any way to get the information needed to do this out of OpenAL?
>
> Thanks
> _______________________________________________
> Openal mailing list
> Openal at opensource.creative.com
> http://opensource.creative.com/mailman/listinfo/openal
>
More information about the Openal
mailing list