OpenAL ... one or many updates?
Hey all,
I''m just getting into working with OpenAL and trying to design it into my engine.
I''m not sure how this works... there are functions alListenerfv() and alSourcefv(), which permit the developer to (respectively) update the players'' "ears" and ingame objects'' "sound emitters" (for lack of better terms). But should these functions be called once per frame? Once at sound play-time? Or does OpenAL assume that the ''fv'' pointers belong to live data that OpenAL reads constantly, internally? How many times, or how often, should the listener and sources be updated with alListenerfv() and alSourcefv()?
Any help would be appreciated, as I am stuck designing this part until I understand this concept
matrix³
[ email | web | apple gl | linux gl | opengl | freeglut | glui | lua ]
It''s been a few months since i last used OpenAL, but i believe OpenAL follows the state machine metaphor like OpenGL, so you should only change the values when there is a change.
It is likely that once you have set up your sound emitters, you wont need to change their values again unless of course they are moving objects.
I''ll double check when i get home later and post here, but im pretty sure you wont need to call them every frame.
It is likely that once you have set up your sound emitters, you wont need to change their values again unless of course they are moving objects.
I''ll double check when i get home later and post here, but im pretty sure you wont need to call them every frame.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement