[Openal] How to really reserve sources
Daniel PEACOCK
dpeacock at creativelabs.com
Tue Jun 24 14:23:56 PDT 2008
Hi Sergio,
You could try generating Sources and attaching a mono Buffer to each of
them to reserve the hardware voices. I'm not sure that this will work on
all OpenAL implementations as a way to guarantee exclusive use of the
voices - but I don't think it would cause any problems either.
Dan
Creative Labs, Inc.
Notice
The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee. Access to this
message by anyone else is unauthorized. If you are not the intended
recipient, any disclosure, copying or distribution of the message, or
any action taken by you in reliance on it, is prohibited and may be
unlawful. If you have received this message in error, please delete it
and contact the sender immediately. Thank you.
"Sergio
Rodríguez"
<sergiorg at gmail.c To
om> openal at opensource.creative.com
Sent by: cc
openal-bounces at op
ensource.creative Subject
.com [Openal] How to really reserve
sources
06/23/2008 11:52
PM
Hello,
For a game I'm developing, I'd like to reserve a fixed amount of sources
and be sure they all are available during application execution, so I can
leave the management of the voices to an upper layer. I'm using an X-Fi,
and the available number of voices (127 at first) are diminished as other
applications are playing sounds.
I've tried to reserve 64 channels using alGenSources(64, &mSources[0]), but
this doesn't really allocate the channels, only the names (as documented in
OpenAL 1.1 specificacion), so nothing is really reserved and 127 voices are
again available to other applications. The only way to have the sources
really reserved is using it, so my question is if there is other way to
effectively reserve the sources for the app. Maybe playing them with an
empty buffer while they are not needed? I have not tried this yet, as I
feel it could be unsupported on some implementations.
Any suggestion greatly appreciated.
Thanks in advance.
Sergio._______________________________________________
Openal mailing list
Openal at opensource.creative.com
http://opensource.creative.com/mailman/listinfo/openal
ForwardSourceID:NT00061FD6
More information about the Openal
mailing list