C Board  

Go Back   C Board > General Programming Boards > Game Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 11-20-2009, 11:56 AM   #1
Registered User
 
Join Date: Apr 2009
Posts: 10
OpenAL sources limit

Hello!
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.
I don't actually understand what they mean by "non-memory resources". What does the count of possible sources depend on? How can I detect the possible count of sources? Some computers seem to allow much more sources.
moment is offline   Reply With Quote
Old 11-21-2009, 03:10 AM   #2
Super Moderator
 
Bubba's Avatar
 
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   Reply With Quote
Old 11-21-2009, 07:35 AM   #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   Reply With Quote
Old 11-21-2009, 11:08 PM   #4
Super Moderator
 
Bubba's Avatar
 
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   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

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


All times are GMT -6. The time now is 03:11 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22