• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
OpenAL: how to determine maximum available Sources
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

OpenAL: how to determine maximum available Sources


  • Subject: OpenAL: how to determine maximum available Sources
  • From: Pi <email@hidden>
  • Date: Tue, 7 Dec 2010 11:32:30 +0700

The OpenAL code I'm using just #defines MAX_SOURCES 32

I have found that I can set this number arbitrarily high e.g. 1024.  And alGenSources does not complain.  It happily generates 1024 sourceIds  without returning an error.  However only the first handful, say 32 actually play a sound.

Is there somewhere I can interrogate the system to figure out how many _working_ sources it can handle?    it is very ugly to #define something which may well change between different devices.


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: OpenAL: how to determine maximum available Sources
      • From: Eric Wing <email@hidden>
  • Prev by Date: Re: Catching output from OpenAL
  • Next by Date: Re: Catching output from OpenAL
  • Previous by thread: Re: CoreAudio IRC ChatRoom at: irc.freenode.net#coreaudio
  • Next by thread: Re: OpenAL: how to determine maximum available Sources
  • Index(es):
    • Date
    • Thread