Hi All,
I've been trying to track down an audio bug where the ATIS voice doesn't play
on my system, though all the other sounds work fine. ATIS has worked
intermittently with the new sound system in the past, and definitely worked
before then. I suspect the issue is specific to my system, as I've not seen any
other reports.
I eventually tracked down the problem with gdb to an exception being thrown in
ATCDCL/ATCmgr.cxx that was being silently swallowed. I've included a patch
below to report the exception to the log.
The reported exception message is: "Failed to load wav file: There was already
an ALC error on entry to an ALUT function
at /home/stuart/FlightGear-0.9/data/ATC/default.wav"
Unfortunately, I haven't been able to get any further diagnosing the problem.
Does anyone have any hints?
-Stuart
Index: ATCmgr.cxx
===================================================================
RCS file: /var/cvs/FlightGear-0.9/source/src/ATCDCL/ATCmgr.cxx,v
retrieving revision 1.2
diff -u -p -r1.2 ATCmgr.cxx
--- ATCmgr.cxx 18 Sep 2009 15:27:25 -0000 1.2
+++ ATCmgr.cxx 28 Dec 2009 19:06:30 -0000
@@ -97,8 +97,9 @@ void FGATCMgr::init() {
try {
voiceOK = v1->LoadVoice("default");
voice = true;
- } catch ( sg_io_exception & ) {
+ } catch ( sg_io_exception & e) {
voiceOK = false;
+ SG_LOG(SG_ATC, SG_ALERT, "Unable to load default voice : " <<
e.getFormattedMessage().c_str());
voice = false;
delete v1;
v1 = 0;
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel