looks like ATC is trying to open to sound device even if i run fgfs
with --disable-sound

fgfs --disable-sound
open /dev/[sound/]dsp: Device or resource busy
Audio initialization failed!
   There was an error opening the ALC device
Fatal error: Failed to load wav file.
 at /usr/local/share/FlightGear/ATC/default.wav

looking at the code in ATC directory i can see that we check only at
compile time for ENABLE_AUDIO_SUPPORT but we don't do anything at run
time (like looking at /sim/sound/pause).

i suggest the code inside #ifdef ENABLE_AUDIO_SUPPORT / #endif should
also be wrapped in if (fgGetNode(/sim/sound/pause)) / endif. or
something like that.

--alex--

-- 
| I believe the moment is at hand when, by a paranoiac and active |
|  advance of the mind, it will be possible (simultaneously with  |
|  automatism and other passive states) to systematize confusion  |
|  and thus to help to discredit completely the world of reality. |


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to