Hi Erik,

Am 12.12.2011 13:31, schrieb Erik Hofman:
I've implemented a mechanism to free OpenAL sources that are farther
away than max-distance (3km for the current AI models). This might solve
your problems, although it is not a one size fits all solution.

I'm still getting many error messages at EHAM - but it's better now. It's starting ok and I'm hearing AI sounds. Nice :)

However, XML conditions for AI aircraft have no effect. All AI sound samples are played unconditionally as soon as the aircraft is in range. "play once" AI sound samples are also played continuously. I think it's caused by an issue with your last update. Attached patch restores the effect of the XML conditions for me - and also "play once" samples work as expected. Not sure if that's the correct way to fix it though...

cheers,
Thorsten
diff --git a/simgear/sound/sample_group.cxx b/simgear/sound/sample_group.cxx
index bdc00ee..c24bb5b 100644
--- a/simgear/sound/sample_group.cxx
+++ b/simgear/sound/sample_group.cxx
@@ -414,8 +414,6 @@ void SGSampleGroup::update_pos_and_orientation() {
                       + position[1]*position[1] + position[2]*position[2];
         if (sample->is_playing() && (dist2 > max2)) {
             sample->stop();
-        } else if (!sample->is_playing() && (dist2 < max2)) {
-            sample->play(sample->is_looping());
         }
     }
 }
------------------------------------------------------------------------------
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to