Hi Erik,

Again, thank you for taking the time to reply...

>> line 'int error = alutGetError();' should clear 
>> any error for the next call.

Yes, but that call is done AFTER the WAV load, but
taking your idea, and the fact that the previous
error message does state 'already' an error,
applied the following small patch - added 5 lines :-

Index: simgear/sound/soundmgr_openal.cxx
===================================================================
RCS
file: /var/cvs/SimGear-0.3/source/simgear/sound/soundmgr_openal.cxx,v
retrieving revision 1.87
diff -u -r1.87 soundmgr_openal.cxx
--- simgear/sound/soundmgr_openal.cxx  4 Jan 2010 14:53:26 -0000  1.87
+++ simgear/sound/soundmgr_openal.cxx  12 Jan 2010 12:44:03 -0000
@@ -543,6 +543,11 @@
 bool SGSoundMgr::load(string &samplepath, void **dbuf, int *fmt,
                                           size_t *sz, int *frq )
 {
+    string s = "load: ";
+    s += samplepath;
+    testForALError(s);
+    testForALCError(s);
+    
     if ( !_working ) return false;
 
     ALenum format;

Then fgfs ran fine, with simple sounds, with the
console output :-

~/fg/fg7$ ./run_fgfs.sh
run_fgfs.sh: Running: ./fgfs --fg-root=/home/geoff/fg/fg7/fgfs/data  &
~/fg/fg7$ FGMultiplayMgr - No receiver port, Multiplayermode disabled
KI266 dme indicator #0 initialized
loading scenario 'nimitz_demo'
creating 3D noise texture... DONE
Initializing Nasal Electrical System
ALC Error (sound manager): ALC_INVALID_DEVICE at
load: /home/geoff/fg/fg7/fgfs/data/Sounds/rumble.wav
PNG lib warning : Incomplete compressed datastream in iCCP chunk
PNG lib warning : Profile size field missing from iCCP chunk
power up

So it seems this ALC error is further back in the code,
and is not checked and cleared until 'load' is reached...
And once cleared by my patch, the wav load proceeds, and
fgfs _FLIES_ ;=))

As indicated, I have libalut0 and -dev 1.1.0-1 only
installed, through the Ubuntu Package Manager,
and have NOT tried building, and using FreeALUT, 
OpenAL-Sample nor OpenAL-Soft in Ubuntu.

And as previously reported, when I run fgfs with the
show 'device' option, I get a 'blank' for device 0, and
"weird vorbid_get\n" for device 1, as per :-

~/fg/fg7$ ./run_fgfs.sh  --show-sound-devices
run_fgfs.sh: Running: ./fgfs --fg-root=/home/geoff/fg/fg7/fgfs/data
--show-sound-devices &
~/fg/fg7$ Software provided by OpenAL Community

No. Device
0.  ""
1.  "weird vorbid_get
"

When I open my Ubuntu 8.04 LTS System -> Preferences -> Sound
my 'Sound Preferences' dialog shows as follows, with the
results when I selected and tested each with the [Test] 
button :-

Tab: Devices
 Sound Events
  Sound playback: Autodetect (selected)
   Options: 
    Autodetect - test tone works
    STAC92xx Digital - test failed, nothing
    STAC92xx Analog - test tone works
    ATI HDMI - test failed, nothing
    ALSA - Advanced Linux Sound Architecture - works
    OSS - Open Sound System - test tone works
    PulseAudio Sound Server - test tone works
 Music and Movies:
  Sound playback: Autodetect (selected)
   Options: as above list
 Audio Conferencing
  Sound playback: Autodetect (selected)
   Options: as above list
  Sound capture: STAC92xx Analog (selected)
   Options:
    STAC92xx Analog, ALSA, OSS, PulseAudio,
    Test sound, Silence
 Default Mixer Tracks
  Device: HDA Intel (Also mixer) - selected
   Options: Similar list to the above.

And no rush, now that I have fgfs up and
running with my above patch ;=)).

HTH

Regards,

Geoff.

PS: Still the strange PNG warnings, per console...



------------------------------------------------------------------------------
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
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to