[Openal] porting questions
Dave Shillito
dave.shillito at kuju.com
Thu Jun 7 03:25:47 PDT 2007
> Dan Peacock Wrote:
>
> So, if you generate 60 Sources then you will know that you can play
back
> 60
> 3D mono buffers simultaneously. NOTE : If you are playing buffers
with
> more than 1 channel then they require additional resources (e.g stereo
> takes 2 voices on hardware, 5.1 takes 6 voices, etc ...). You can
either
> keep track of this yourself (e.g with 60 Sources if you play one
stereo
> then you can only play 58 mono buffers), or you can use the alc
Context
> creation hint ALC_STEREO_SOURCES to tell OpenAL to reserve Sources to
> enable playback of a certain number of stereo buffers simultaneously.
Hi Dan,
That is an interesting titbit I did not pickup from the docs.
I am currently creating as many sources as are possible at startup, and
then assigning these buffers as the app progresses.
So presumably from what you have just said, if I was only able to
generate 30 sources at startup (using alGenSources) and I then assigned
one of these a stereo buffer (using alSourceQueueBuffers), I would only
be able to use 28 if the remaining sources.
So what happens to the remaining (already generated) source?
(I generated 30, 1 is playing a stereo buffer, 28 are playing mono
buffers so 1 remains)
Does this source just fail to accept buffers?
Does it accept buffers but fail to play them?
Is there some way to determine that this source is 'no longer working'
before I try to use it?
Alternatively if I'm playing mono sounds on all 30 sources, stop one and
remove its buffers, then try to queue a new stereo buffer on that
source, what will the result be?
There are other questions this raises but that will do for now.
DAve
__________________________________________________________________________________________________________________________________________
Information contained in this e-mail is intended for the use of the addressee only, and is confidential and may be the subject of Legal Professional Privilege. Any dissemination, distribution, copying or use of this communication without prior permission of the addressee is strictly prohibited.The views of the author may not necessarily constitute the views of Kuju Entertainment Ltd. Nothing in this email shall bind Kuju Entertainment Ltd in any contract or obligation.
The contents of an attachment to this e-mail may contain software viruses which could damage your own computer system. While Kuju Entertainment has taken every reasonable precaution to minimise this risk, we cannot accept liability for any damage which you sustain as a result of software viruses. You should carry out your own virus checks before opening the attachment.
Registered Office : 10 Woodside Park, Catteshall Lane, Godalming, Surrey, UK, GU7 1LG. Company Number : 3481384.Company Registered in England.
__________________________________________________________________________________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
_________________________________________________________________________________________________________________________________________
More information about the Openal
mailing list