Hi Anders,

   I tried creating an .alsoftrc file and saving alsoftrc.sample file provided 
in Openal package as "alsoft.conf". Though creating alsoft.conf didn't have any 
effect but creating .alsoftrc file made thing worse. I couldn't even run a 
single instance of FlightGear. This ia what I get: -

Audio initialization failed!

   There was an error opening the ALC device

Oops AL error after audio initialization!

OpenAL error (AL_ILLEGAL_COMMAND): constructor (alGenBuffers)

Fatal error: Failed to gen OpenAL buffer.



As you can see, it doesn't even check /dev/dsp file.

removing .alsoftrc file again sets things back to the way they were earlier. 
Openal uses oss and can run one instance only.



Do I need to configure alsa somehow? This is what alsa portion looks in the 
alsoft.conf file: -

##

## ALSA backend stuff

##

[alsa]



## device:

#  Sets the device name for the default playback device.

#device = default



## capture:

#  Sets the device name for the default capture device.

#capture = default



I tried the following things in the .alsoftrc file:-

[general]

drivers=alsa



and the one that you sent:

format = AL_FORMAT_STEREO16

cf_level = 2

drivers = alsa

[alsa]  # ALSA backend stuff

device = plug:dmix

capture = plug:dsnoop



I don't know but this may help: -

$ locate dmix

/etc/alsa/pcm/dmix.conf



$ locate dsnoop

/etc/alsa/pcm/dsnoop.conf



Thanks.

Ekhlas.



On Tue, 16 Feb 2010 01:55:41 +0530  wrote

>On Mon, 15 Feb 2010, Ekhlas Sonu wrote:







> Hi,



>



>  I have been trying to run multiple instances of Flightgear from my 



> computer (RHEL-5 64 bit). I need to do that for my research. However, 



> only one instance of Flightgear runs while the other crashes giving this 



> error:



>



> I think the first instance of Flightgear is occupying audio resources 



> and not willing to share it as when one instance of FG is running, no 



> other audio function works. Can anyone tell me how to solve this 



> problem?







Yes, you have identified the problem correctly.



It appears that, for some reason, your OpenAL library is configured to use 



OSS (the very old Linux sound system) which usually only allowed one 



sound application at a time (though a few cards could support a /dev/dsp1 



too).







However, since we are not still in the 1990s your system probably have a 



more capable sound system available, perhaps Alsa.







If you have Alsa and OpenAL-soft you can put the following in your 



.alsoftrc file to configure it to use Alsa:







and...@sleipner:~$ cat .alsoftrc



format = AL_FORMAT_STEREO16



cf_level = 2



drivers = alsa



[alsa] # ALSA backend stuff



device = plug:dmix



capture = plug:dsnoop







See also /etc/openal/alsoft.conf (if you have that file).







If you have the other OpenAL library (Creative's old reference 



implementation) the file to create is .openalrc and it



has a different syntax which I have forgotten.







Cheers,







Anders



-- 



---------------------------------------------------------------------------



Anders Gidenstam



WWW: http://www.gidenstam.org/FlightGear/







------------------------------------------------------------------------------



SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,



Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW



http://p.sf.net/sfu/solaris-dev2dev



_______________________________________________



Flightgear-users mailing list



Flightgear-users@lists.sourceforge.net



https://lists.sourceforge.net/lists/listinfo/flightgear-users



------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Flightgear-users mailing list
Flightgear-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-users

Reply via email to