[Openal] How to really reserve sources
Sergio Rodriguez
sergiorg at gmail.com
Sat Jun 28 18:12:39 PDT 2008
Hi Daniel,
Thanks a lot for your reply. I'm going to implement it and I'll tell you
about the results.
Best regards
On Tue, Jun 24, 2008 at 11:23 PM, Daniel PEACOCK <dpeacock at creativelabs.com>
wrote:
> 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.
>
>
> [image: Inactive hide details for "Sergio Rodríguez" <sergiorg at gmail.com>]"Sergio
> Rodríguez" <sergiorg at gmail.com>
>
>
>
> *"Sergio Rodríguez" <sergiorg at gmail.com>*
> Sent by: openal-bounces at opensource.creative.com
>
> 06/23/2008 11:52 PM
>
>
> To
>
> openal at opensource.creative.com
> cc
>
>
> Subject
>
> [Openal] How to really reserve sources
>
> 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
>
--
Sergio Rodríguez García
sergiorg at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://opensource.creative.com/pipermail/openal/attachments/20080629/24d92c1c/attachment.html
More information about the Openal
mailing list