![]() |
| | #1 |
| Registered User Join Date: Apr 2009
Posts: 10
| OpenAL sources limit My computer game uses OpenAL. I have recently encountered a problem: I can not generate as many sources as I want. It gives me this error: Code: There are not enough non-memory resources to create all the requested sources, or the array pointer is not valid. |
| moment is offline | |
| | #2 |
| Super Moderator Join Date: Aug 2001
Posts: 8,423
| Normally you can count on at least 20 sources. Depending on the sound card you may actually get up to 32 or more. Check the OpenAL docs for more information. |
| Bubba is offline | |
| | #3 |
| Registered User Join Date: Apr 2009
Posts: 10
| Only 32? Do I understand something wrong? My computer is not the newest machine at all and I get at least 200. At the moment I have used a separate source for every character in my game. There are sometimes quite many needed in the current case. Actually not as many as 200, but still... Should I search for a more effective way to do it? |
| moment is offline | |
| | #4 |
| Super Moderator Join Date: Aug 2001
Posts: 8,423
| 200? Wow. I definitely do not get 200 sources on my Audigy 2. The only way to bypass the source issue is to mix your own data and place it all into one or more sources. You can do this by additive mixing your samples and then playing the final mixed result on a sound source. In order to get low level access to correctly mix the sounds you can consult the OAL docs or you can use the Windows multimedia API. I don't remember if OAL allows you to manually mix your samples. |
| Bubba is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| OpenAL channels | Bubba | Game Programming | 1 | 08-25-2009 09:44 PM |
| OpenAL issues | Slyde | Game Programming | 2 | 03-20-2004 09:33 AM |
| My credit limit program doesn't produce the desired output | Guti14 | C++ Programming | 3 | 01-08-2004 09:43 PM |
| Heap limit error??? | sunburnbyRA | C++ Programming | 6 | 04-10-2003 03:12 PM |
| hi need help with credit limit program | vaio256 | C++ Programming | 4 | 04-01-2003 12:23 AM |