[Openal] Audiosink
Garin Hiebert
garinh at cheesetoast.net
Wed Sep 27 22:45:26 PDT 2006
> I am writing an audiosink, my scenery:
>
> filesource -> decode -> audiosink
>
I'm probably not the right person to answer this, because I don't know
what an "audiosink" is (although it seems to be a term associated with
audio in Java), but since nobody else is taking a shot at answering...
> The application should be able to decode AC3, DTS, OGG
>
Those three formats are hopefully being handled by a library (or the
host application) outside of OpenAL -- those aren't native formats.
> OpenAl
> should determine the correct pitch alteration and gain
>
> attenuation to render the sound!
If your application provides velocity and position data, then OpenAL can
indeed provide 3D positioning and Doppler-related pitch shifting. The
application can also modify individual source gain and pitch in addition
to the distance and Doppler-related factors.
> If I understood the
> key to streaming is use queue, ok?
>
Yes, you'll want to use the queuing mechanism for streaming.
> if I want to add some sound affects such as rotation,
> dopler, reverb, should I create some properties?
>
This is a matter of the design of the audio class above OpenAL, but yes
that seems like the right approach. For effects, you may want to
consider the EFX extension if you are running on Windows (EFX is now
part of the public OpenAL 1.1 SDK for Windows, available at
"http://developer.creative.com/articles/article.asp?cat=1&sbcat=31&top=38&aid=45").
Garin
More information about the Openal
mailing list