[openal] number of maximum sources. was: distance model questions
dtvictorious at gmail.com
Thu Jul 30 02:55:03 EDT 2015
How was the limit of 255 mono and 1 stereo source chosen? Also, I'd like to increase this for stereo sources e.g 1 stereo source for background music, another stereo source for environmental ambient sounds.
From: openal [mailto:openal-bounces at openal.org] On Behalf Of Chris Robinson
Sent: Thursday, May 28, 2015 6:18 PM
To: openal mailing list
Subject: Re: [openal] distance model questions
On 05/28/2015 02:50 AM, Victorious wrote:
> That worked like a charm, thanks.
> If the gain is set to 0, it is completely muted. Is the source still
> considered playing?
Yes. Certain steps may be skipped in the mixing pipeline for such sources, but as far as the app sees it plays normally (its offset will continue to increment, buffers will become processed, etc).
> On a related question, what is the maximum number of sounds that can
> be played on windows 8.1?
OpenAL Soft has a practical limit of 256 simultaneous sources (the same maximum that can be allocated). It's all done in software, so the OS doesn't affect it.
Other implementations may have their own limits based on whatever criteria it uses. You can query this limit calling alcGetIntegerv with ALC_MONO_SOURCES and ALC_STEREO_SOURCES (you're guaranteed to be able to play the given number of mono sources and stereo sources simultaneously).
openal mailing list
openal at openal.org
More information about the openal