Re: [Flightgear-devel] New Sound system committed

2009-10-31 Thread Erik Hofman
Ron Jensen wrote:
 On Fri, 2009-10-30 at 10:08 +0100, Erik Hofman wrote:
 Nicolas Quijano wrote:
 The wind sample we use is indeed very saturated, and was drowned by the 
 rumble sample before.
 Did another run today and think you might be fooled by another sound 
 effect that I have been trying to simulate; at higher alpha or beta 
 values the propwash sound effect kicks in. I think it does need some 
 tweaking though now that you mention it.

 Erik
 
 Erik, 
 - Is there a model you're working on with sound?  I've just been testing
 with whatever I happen to want to load...

Normally  test two models, the default c172 and the F-16 since I know 
how the directional sounds should behave. However, once in a while I do 
test other models that look interesting for testing (multi-engined 
aircraft for instance).

 - Today while flying I noticed the marker beacon is doppler shifted in
 all aircraft views.  Tower and Fly-by view it sounds correctly.

Odd, sounds like the beacon is positioned at the beacon location instead 
of the panels/aircraft location. It's on my todo list (after fixing 
position and orientation; if that is not fixed properly I might end up 
reverting all other patches).

Erik

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-31 Thread Victhor Foster
The sound is glitched here for a few planes. Ec135 is glitched on fly- 
by view, but F-16 isn't.

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-31 Thread Curtis Olson
On Sat, Oct 31, 2009 at 9:21 AM, Erik Hofman wrote:

 Alright, enough of this.
 I've spent three full weeks trying to get the position and orientation
 correctly and asked several times for help but no one seems to care.
 Fine,  it.


Erik,

I've seen one thread with over 100 messages on the topic and this thread is
about 60 messages already, not to mention all the smaller threads and
individual messages.  You are the audio system expert, and I've seen tons of
people pitching in to offer problem reports on their platform and test
potential fixes as you propose them.  I'm not sure what you are hoping for
in terms of help, but I've seen more interest and participation in this
process of overhauling the audio system than for just about any other issue
in recent memory.

Regards,

Curt.
-- 
Curtis Olson: http://baron.flightgear.org/~curt/
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-31 Thread syd adams
On Sat, Oct 31, 2009 at 7:21 AM, Erik Hofman e...@ehofman.com wrote:

 Alright, enough of this.
 I've spent three full weeks trying to get the position and orientation
 correctly and asked several times for help but no one seems to care.
 Fine, fuck it.

 Erik


I wish I could, but about all I can do is report the results here , and I
imagine that gets pretty frustrating if your not having the same problems .
I'll see if I can make sense of the sound code ...
But I'm really hoping you dont give up :)
Cheers
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-31 Thread Arnt Karlsen
On Sat, 31 Oct 2009 09:54:06 -0500, Curtis wrote in message 
ef5fc9920910310754n7f4e32ech78caf4694415...@mail.gmail.com:

 On Sat, Oct 31, 2009 at 9:21 AM, Erik Hofman wrote:
 
  Alright, enough of this.
  I've spent three full weeks trying to get the position and
  orientation correctly and asked several times for help but no one
  seems to care. Fine,  it.
 
 
 Erik,
 
 I've seen one thread with over 100 messages on the topic and this
 thread is about 60 messages already, not to mention all the smaller
 threads and individual messages.  You are the audio system expert,
 and I've seen tons of people pitching in to offer problem reports on
 their platform and test potential fixes as you propose them.  I'm not
 sure what you are hoping for in terms of help, but I've seen more
 interest and participation in this process of overhauling the audio
 system than for just about any other issue in recent memory.
 
 Regards,
 
 Curt.

..a test script idea; all the way from cvs co etc on everything 
needed to run the tests Erik needs run, all the way to and thru 
the tests scripts Erik needs run, and passing on all the logs 
he needs to read?  
(I'm busy moving house, workshop, genset and gasifier etc.)

-- 
..med vennlig hilsen = with Kind Regards from Arnt... ;o)
...with a number of polar bear hunters in his ancestry...
  Scenarios always come in sets of three: 
  best case, worst case, and just in case.

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-31 Thread Erik Hofman
Arnt Karlsen wrote:
 On Sat, 31 Oct 2009 09:54:06 -0500, Curtis wrote in message 
 ef5fc9920910310754n7f4e32ech78caf4694415...@mail.gmail.com:

   
 Erik,

 I've seen one thread with over 100 messages on the topic and this
 thread is about 60 messages already, not to mention all the smaller
 threads and individual messages.  You are the audio system expert,
 and I've seen tons of people pitching in to offer problem reports on
 their platform and test potential fixes as you propose them.  I'm not
 sure what you are hoping for in terms of help, but I've seen more
 interest and participation in this process of overhauling the audio
 system than for just about any other issue in recent memory.

 Regards,

 Curt.
 

 ..a test script idea; all the way from cvs co etc on everything 
 needed to run the tests Erik needs run, all the way to and thru 
 the tests scripts Erik needs run, and passing on all the logs 
 he needs to read?  
 (I'm busy moving house, workshop, genset and gasifier etc.)
   
It's not the problems that everybody helped me to find anymore, I really 
appreciated that. I just wanted some help wiht the figuring out the 
quaternations and positioning code. It probably could have saved 
everybody two full weeks if someone with a little knowledge of the 
matter had told me you can't use the zero vector in rotations for 
quaternations. Now i had to learn it the hard way (and everybody knows 
the result).

Luckily I seem to get the best ideas when I'm frustrated since I now 
found out that the up-vector of the listener was actually pointing down. 
After changing that things seems to fall into place, more or less. Maybe.
More tomorrow, I hope.

Erik

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-30 Thread Erik Hofman
Nicolas Quijano wrote:
 Little mistake : The wind sound, which wasn't audible before, is now 
 vastly over the sound of the rumble, which I had mistakenly thought was 
 the wind (it makes for a better wind on wings sound, from this point of 
 hearing approximately between my ears)
 The wind sample we use is indeed very saturated, and was drowned by the 
 rumble sample before.
 Do you have an overview of how differently are the sounds .xml configs 
 interpreted vs the previous sound implementation ?

It should be the same if I get the position stuff sorted out. Little 
tweaks could be necessary as you say since I've improved sound 
management (more sounds available).

 What has changed in that regard, if anything, and would you by any 
 chance know why there could be such a huge difference ?
 Because same sound config, wildly different results.
 Thanks in advance for your insights.
 
 So never mind : sound quality might well be as good at it ever was (or 
 even better), sorry for that, didn't mean to muddle things up.

I know, it's the little things like this that pop up when reworking the 
sound code.

Erik

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-30 Thread Erik Hofman
Nicolas Quijano wrote:
 The wind sample we use is indeed very saturated, and was drowned by the 
 rumble sample before.

Did another run today and think you might be fooled by another sound 
effect that I have been trying to simulate; at higher alpha or beta 
values the propwash sound effect kicks in. I think it does need some 
tweaking though now that you mention it.

Erik

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-30 Thread Ron Jensen
On Fri, 2009-10-30 at 10:08 +0100, Erik Hofman wrote:
 Nicolas Quijano wrote:
  The wind sample we use is indeed very saturated, and was drowned by the 
  rumble sample before.
 
 Did another run today and think you might be fooled by another sound 
 effect that I have been trying to simulate; at higher alpha or beta 
 values the propwash sound effect kicks in. I think it does need some 
 tweaking though now that you mention it.
 
 Erik

Erik, 
- Is there a model you're working on with sound?  I've just been testing
with whatever I happen to want to load...

- Today while flying I noticed the marker beacon is doppler shifted in
all aircraft views.  Tower and Fly-by view it sounds correctly.

Thanks,

Ron



--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-30 Thread syd adams
 Erik,
 - Is there a model you're working on with sound?  I've just been testing
 with whatever I happen to want to load...

 - Today while flying I noticed the marker beacon is doppler shifted in
 all aircraft views.  Tower and Fly-by view it sounds correctly.

 Thanks,

 Ron

 Hi Ron ,
   Which OpenAl are you currently using ?Maybe I'll try it , if I haven't
already.
The doppler effect broke for me long ago , but I now get a very low pitched
marker beacon sound...


I did notice yesterday that from an outside view , the volume changes while
rotating the view around the aircraft , but Im assuming that's the
orientation Eric is working on ...
The only other thing I see is the volume slider doesn't change the volume
smoothly (already reported) , and ATIS cuts off other sounds , but doesn't
play itself...
Cheers
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-30 Thread Jari Häkkinen
Erik Hofman wrote:
 I've committed the current state of my local code to see if it fixes 
 anything.
 
 Erik


Erik, there is a typo in SIMGEAR/simgear/sound/Makefile.am, see diff below.


Cheers,

Jari



Index: simgear/sound/Makefile.am
===
RCS file: /var/cvs/SimGear-0.3/source/simgear/sound/Makefile.am,v
retrieving revision 1.12
diff -u -p -r1.12 Makefile.am
--- simgear/sound/Makefile.am   29 Oct 2009 12:53:20 -  1.12
+++ simgear/sound/Makefile.am   30 Oct 2009 21:22:35 -
@@ -22,7 +22,7 @@ check_PROGRAMS = openal_test1 openal_tes

  openal_test1_SOURCES = openal_test1.cxx
  openal_test2_SOURCES = openal_test2.cxx
-openal_test3SOURCES = openal_test3.cxx
+openal_test3_SOURCES = openal_test3.cxx

  openal_test1_LDADD = \
$(top_builddir)/simgear/debug/libsgdebug.a \

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-30 Thread syd adams
Just a note to say ATIS now works here ...
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-29 Thread Scott Hamilton
On Thu, 2009-10-29 at 02:26 +0100, Csaba Halász wrote:

 Hi Erik!
 
 If a sound sample keeps its default orientation of all zeroes then in
 SGSoundSample::update_absolute_position the sc2body*q will be also
 null and cause a division by zero in SGQuatdouble::backTransform.
 



Perhaps this explains why the most recent cvs update produces;

SimGear/source/simgear/sound ./openal_test2
NaN in source
position  
NaN in source
orientation   
playing
sample1 
NaN in source
position  
NaN in source
orientation   
NaN in source
position  
NaN in source
orientation   
playing
sample2 
NaN in source
position  
NaN in source
orientation   
NaN in source
position  
NaN in source
orientation   
playing
sample3 
NaN in source
position  
NaN in source
orientation   
NaN in source
position  
NaN in source
orientation   
playing
sample4 
NaN in source position
NaN in source orientation
NaN in source position
NaN in source orientation
playing sample5
NaN in source position
NaN in source orientation
NaN in source position
NaN in source orientation
playing sample6
NaN in source position
NaN in source orientation

   and the sounds I had from the code of last week are still gone, but
what I find difficult is there isn't any error messages
   (except the source and listener distance greater than 50km!) which
doesn't help very much with any troubleshooting, if there
   was something complaining somewhere it would make it easier to find
out what is happening/not happening...
   
   
   S.

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-29 Thread Erik Hofman
Scott Hamilton wrote:
 On Thu, 2009-10-29 at 13:57 +0100, Erik Hofman wrote:
 
 Hi ya Erik,
 
 
   I just tried out the test3, no sound what so ever...
 
 SimGear/source/simgear/sound ./openal_test3
 default position and orientation
 NaN in source position
 NaN in source orientation
 playing sample
 source at lat,lon = (10,-10), listener at (0.999,-0.999)
 NaN in source position
 NaN in source orientation

Why, why! do others get this while I don't!??

Erik

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-29 Thread Erik Hofman
Erik Hofman wrote:
 Scott Hamilton wrote:
 On Thu, 2009-10-29 at 13:57 +0100, Erik Hofman wrote:

 Hi ya Erik,


   I just tried out the test3, no sound what so ever...

 SimGear/source/simgear/sound ./openal_test3
 default position and orientation
 NaN in source position
 NaN in source orientation
 playing sample
 source at lat,lon = (10,-10), listener at (0.999,-0.999)
 NaN in source position
 NaN in source orientation
 
 Why, why! do others get this while I don't!??

Ok I removed a whole bunch of options from the CFLAGS line which was:
-march=athlon -msse3 -mfpmath=sse -pipe -fomit-frame-pointer 
-falign-jumps=16 -falign-loops=16 -falign-functions=64 -mno-push-args 
-maccumulate-outgoing-args

it's now: -O3 -Wall -Werror=format-security -D_REENTRANT

And now I get the division by zero in orientation that Csaba described. 
It's fixed locally but I till don't get the NaN's in the position code 
that Scott describes.

Erik

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-29 Thread dave perry
Erik Hofman wrote:
 Scott Hamilton wrote:
   
 On Thu, 2009-10-29 at 13:57 +0100, Erik Hofman wrote:

 Hi ya Erik,


   I just tried out the test3, no sound what so ever...
 

 I've committed the current state of my local code to see if it fixes 
 anything.

 Erik


   
Hi Erik,
Updated both my core2 duo (64 bit FC10) and my Athlon XP 3200+ (32 bit 
FC10) both running FC10 openal and freealut distribution rpms.  ATC and 
aircraft sounds are now working on both systems.  Neither had aircraft 
sounds before this update. Thanks for all your work!
Dave P.


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-29 Thread Alasdair Campbell
On Thu, 2009-10-29 at 09:45 -0600, dave perry wrote:
 Erik Hofman wrote:
  Scott Hamilton wrote:

  On Thu, 2009-10-29 at 13:57 +0100, Erik Hofman wrote:
 
  Hi ya Erik,
 
 
I just tried out the test3, no sound what so ever...
  
 
  I've committed the current state of my local code to see if it fixes 
  anything.
 
  Erik
 
 

 Hi Erik,
 Updated both my core2 duo (64 bit FC10) and my Athlon XP 3200+ (32 bit 
 FC10) both running FC10 openal and freealut distribution rpms.  ATC and 
 aircraft sounds are now working on both systems.  Neither had aircraft 
 sounds before this update. Thanks for all your work!
 Dave P.
 
 
All sounds seem good here too. Congratulations.
My only concern is that the engine sound and the wind sound are so loud
that they drown outsounds like flaps and atis. Any suggestion where I
can find a solution?
regards,
Alasdair


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-29 Thread Ron Jensen
On Thu, 2009-10-29 at 14:36 +0100, Erik Hofman wrote:
 Scott Hamilton wrote:
  On Thu, 2009-10-29 at 13:57 +0100, Erik Hofman wrote:
  
  Hi ya Erik,
  
  
I just tried out the test3, no sound what so ever...
 
 I've committed the current state of my local code to see if it fixes 
 anything.
 
 Erik

Hi Erik,

Sound seems to work O.K. today for me.  Except when I tune atis I get:
voice synth: word '(many lines of stuff...)' not found
source and listener distance greater than 20km!
source and listener distance greater than 20km!

And no ATIS sound...  I assume its supposed to give sound even if all
the samples aren't found?


Ron



--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-29 Thread Alan Teeder
With VC++ 2008 Express  - no engine sound yesterday

Today:-

-- Build started: Project: SimGear, Configuration: Release Win32 --
Compiling...
sample_group.cxx
..\..\simgear\sound\sample_group.cxx(387) : error C2664: 'isNaN' : cannot
convert parameter 1 from 'SGVec3d' to 'float *'
No user-defined-conversion operator available that can perform this
conversion, or the operator cannot be called
..\..\simgear\sound\sample_group.cxx(388) : error C2664: 'isNaN' : cannot
convert parameter 1 from 'SGVec3f' to 'float *'
No user-defined-conversion operator available that can perform this
conversion, or the operator cannot be called
..\..\simgear\sound\sample_group.cxx(389) : error C2664: 'isNaN' : cannot
convert parameter 1 from 'SGVec3f' to 'float *'
No user-defined-conversion operator available that can perform this
conversion, or the operator cannot be called
Build log was saved at
file://d:\fg\SimGear\projects\VC90\Win32\Release\BuildLog.htm
SimGear - 3 error(s), 0 warning(s)


Sorry 

Alan



--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-29 Thread Erik Hofman
Alan Teeder wrote:
 With VC++ 2008 Express  - no engine sound yesterday
 
 Today:-
 
 -- Build started: Project: SimGear, Configuration: Release Win32 --
 Compiling...
 sample_group.cxx
 ..\..\simgear\sound\sample_group.cxx(387) : error C2664: 'isNaN' : cannot
 convert parameter 1 from 'SGVec3d' to 'float *'

Ok, I've fixed that now.

Erik

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-29 Thread Erik Hofman
Ron Jensen wrote:
 Hi Erik,
 
 Sound seems to work O.K. today for me.  Except when I tune atis I get:
 voice synth: word '(many lines of stuff...)' not found
 source and listener distance greater than 20km!
 source and listener distance greater than 20km!
 
 And no ATIS sound...  I assume its supposed to give sound even if all
 the samples aren't found?

As far as I know it should indeed.
Here is the status update of the code:

* positioning: needs fixing
* orientation and sound direction: should be correct.
* velocity vector (and hence Doppler): should be correct.

But let me tell you; this evening I'll calibrate that the 
sound-not-playing bug is finally fixed.

Erik

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-29 Thread Alan Teeder
It compiles and sounds are back! That was quick.

Well done

Alan

 -Original Message-
 From: Erik Hofman [mailto:e...@ehofman.com]
 Sent: 29 October 2009 17:07
 To: FlightGear developers discussions
 Subject: Re: [Flightgear-devel] New Sound system committed
 
 Ron Jensen wrote:
  Hi Erik,
 
  Sound seems to work O.K. today for me.  Except when I tune atis I get:
  voice synth: word '(many lines of stuff...)' not found
  source and listener distance greater than 20km!
  source and listener distance greater than 20km!
 
  And no ATIS sound...  I assume its supposed to give sound even if all
  the samples aren't found?
 
 As far as I know it should indeed.
 Here is the status update of the code:
 
 * positioning: needs fixing
 * orientation and sound direction: should be correct.
 * velocity vector (and hence Doppler): should be correct.
 
 But let me tell you; this evening I'll calibrate that the
 sound-not-playing bug is finally fixed.
 
 Erik
 
 --
 
 Come build with us! The BlackBerry(R) Developer Conference in SF, CA
 is the only developer event you need to attend this year. Jumpstart your
 developing skills, take BlackBerry mobile applications to market and stay
 ahead of the curve. Join us from November 9 - 12, 2009. Register now!
 http://p.sf.net/sfu/devconference
 ___
 Flightgear-devel mailing list
 Flightgear-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/flightgear-devel


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-29 Thread Nicolas Quijano
Ditto here on windows vista 64 using OpenAL SDK (for this build). The wind
noise has changed texture, as if it was heavily saturated, while it use to
be a nice wind sound. I guess maybe volume is too high on it.

And that can be tweaked I guess through the xml file. It really doesn't
sound the same as my Oct 2nd build, all things being equal (same data)
We're not quite back where we were in sound quality, but at least sounds
seems to be all working now.
Haven't done a debug build yet, will advise if it still crashes.
Sound is a bit sensitive to camera movement right now, from a quick hearing
test :)

Quick note : the volume slider is pretty much useless at the moment, maybe
to a change in the volume attenuation scale ?
It only has effect in the leftmost part of the slider (so low end of volume)
, maybe the last 1/8th of the slide, and then brutally diminishes sound.
Before that, no discernible difference in volume.


That said, again thanks for the hard work Erik (and everyone else)
Cheers,
Nic



On Thu, Oct 29, 2009 at 1:17 PM, Alan Teeder ajtee...@v-twin.org.uk wrote:

 It compiles and sounds are back! That was quick.

 Well done

 Alan

  -Original Message-
  From: Erik Hofman [mailto:e...@ehofman.com]
  Sent: 29 October 2009 17:07
  To: FlightGear developers discussions
  Subject: Re: [Flightgear-devel] New Sound system committed
 
  Ron Jensen wrote:
   Hi Erik,
  
   Sound seems to work O.K. today for me.  Except when I tune atis I get:
   voice synth: word '(many lines of stuff...)' not found
   source and listener distance greater than 20km!
   source and listener distance greater than 20km!
  
   And no ATIS sound...  I assume its supposed to give sound even if all
   the samples aren't found?
 
  As far as I know it should indeed.
  Here is the status update of the code:
 
  * positioning: needs fixing
  * orientation and sound direction: should be correct.
  * velocity vector (and hence Doppler): should be correct.
 
  But let me tell you; this evening I'll calibrate that the
  sound-not-playing bug is finally fixed.
 
  Erik
 
 
 --
  
  Come build with us! The BlackBerry(R) Developer Conference in SF, CA
  is the only developer event you need to attend this year. Jumpstart your
  developing skills, take BlackBerry mobile applications to market and stay
  ahead of the curve. Join us from November 9 - 12, 2009. Register now!
  http://p.sf.net/sfu/devconference
  ___
  Flightgear-devel mailing list
  Flightgear-devel@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/flightgear-devel



 --
 Come build with us! The BlackBerry(R) Developer Conference in SF, CA
 is the only developer event you need to attend this year. Jumpstart your
 developing skills, take BlackBerry mobile applications to market and stay
 ahead of the curve. Join us from November 9 - 12, 2009. Register now!
 http://p.sf.net/sfu/devconference
 ___
 Flightgear-devel mailing list
 Flightgear-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/flightgear-devel




-- 
Be Kind.
Remember, everyone is fighting a hard battle.
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-29 Thread Scott Hamilton
On Thu, 2009-10-29 at 09:45 -0600, dave perry wrote:

Hurray! another build with working engine sounds, great debugging
work by all. 


S.



 Hi Erik,
 Updated both my core2 duo (64 bit FC10) and my Athlon XP 3200+ (32 bit 
 FC10) both running FC10 openal and freealut distribution rpms.  ATC and 
 aircraft sounds are now working on both systems.  Neither had aircraft 
 sounds before this update. Thanks for all your work!
 Dave P.
 
 
 --
 Come build with us! The BlackBerry(R) Developer Conference in SF, CA
 is the only developer event you need to attend this year. Jumpstart your
 developing skills, take BlackBerry mobile applications to market and stay 
 ahead of the curve. Join us from November 9 - 12, 2009. Register now!
 http://p.sf.net/sfu/devconference
 ___
 Flightgear-devel mailing list
 Flightgear-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/flightgear-devel
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-29 Thread Nicolas Quijano
Little mistake : The wind sound, which wasn't audible before, is now vastly
over the sound of the rumble, which I had mistakenly thought was the wind
(it makes for a better wind on wings sound, from this point of hearing
approximately between my ears)
The wind sample we use is indeed very saturated, and was drowned by the
rumble sample before.
Do you have an overview of how differently are the sounds .xml configs
interpreted vs the previous sound implementation ?
What has changed in that regard, if anything, and would you by any chance
know why there could be such a huge difference ?
Because same sound config, wildly different results.
Thanks in advance for your insights.

So never mind : sound quality might well be as good at it ever was (or even
better), sorry for that, didn't mean to muddle things up.

Cheers,
Nic


-- 
Be Kind.
Remember, everyone is fighting a hard battle.
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-28 Thread Scott Hamilton
On Wed, 2009-10-28 at 12:33 +1300, James Sleeman wrote:

   I'm using OpenAL-Soft 1.9.563 compiled from source from
http://kcat.strangesoft.net/openal.html
   and ALUT 1.1 compiled from source from
http://connect.creativelabs.com/openal/Downloads/ALUT/freealut-1.1.0.tar.gz
   These both seem to be the latest. I've also tried using the (older)
RPM's that come with my distro, same result...

   I couldn't checkout anything for ALUT from the SVN URL above... 


   S.



 On 28/10/09 08:22, jorg van der venne wrote:
 
  Al packages were checked-out Sunday 25th. I am sure it was
  svn://connect.creativelabs.com/OpenAL/trunk/OpenAL-Soft
   svn://connect.creativelabs.com/OpenAL/trunk/Alut that fixed my
  problem
 
 I think distributions will be using a much older OpenAL-Soft.  My
 up-to-date Ubuntu 9.04 has OpenAL-Soft 1.4.272 by the looks of it,
 current version of OpenAL-Soft is 1.9.563 according to
 http://kcat.strangesoft.net/openal.html
 
 I wonder if this is the cause of the differing problems people are
 seeing.


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-28 Thread Erik Hofman
Csaba Halász wrote:
 On Tue, Oct 27, 2009 at 1:23 PM, Erik Hofman e...@ehofman.com wrote:
 This is getting silly. I've now committed code that checks is the source
 and listener are further apart than 50km or if there are any NaN's in
 the position, orientation or velocity data of the source or listener.
 If the sound is still inaudible while FlightGear prints a warning in the
 sort of NaN detected in position or source and listener distance
 greater than 50km then I'm really going to suspect a bug in the OpenAL
 implementation.
 
 Starting at EGLL with the default c172p, I notice:
 1) the engine sound is louder in cockpit than in external view
 2) tuning to ATIS 123.9 I get the source and listener distance
 greater than 50km! message (twice)

This suggests it's just a startup problem, otherwise you would have such 
a message every frame.

 3) tuning away from ATIS frequency does not stop ATIS sound
 
 About item #3: lines 267-8 in ATC.cxx:
 _sgr-stop(refname);
 _sgr-remove(refname);
 stop() only sets a flag that is checked in SGSampleGroup::update.
 However, remove() removes the sample immediately from the _samples
 collection and puts it into the _removed_samples. From there, only
 sounds that are really stopped (OpenAl-wise) get cleaned up. Except
 the update() never gets a chance to stop the sample because it is
 already removed from the active collection. (ATIS is not the only
 example for this)

Thanks for the heads-up, I've fixed this locally already. I'm now 
looking at the position and orientation code again.

 Looking at the code I spotted that FGATC::_playing isn't initialized
 in the constructor, please fix it if you have a spare moment. Also,

Alright, I've fixed it locally but it's beyond the soundmanager code.

 generating random refname for sound samples but then using a different
 refname to add it into the _samples collection is confusing. I mean,
 It sure confused me, I thought I was seeing memory corruption and
 started to hunt it down :)

Problem is that samples generated with user supplied data all shared the 
same name. I've made it a bit more obvious but still random.

Erik



--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-28 Thread Erik Hofman
Csaba Halász wrote:
 Starting at EGLL with the default c172p, I notice:
 1) the engine sound is louder in cockpit than in external view
 2) tuning to ATIS 123.9 I get the source and listener distance
 greater than 50km! message (twice)
 3) tuning away from ATIS frequency does not stop ATIS sound

The fixes for these problems have been committed to CVS now. beware: 
outside view orientation is still wring since the view manager behaves 
differently for inside-aircraft views and for look-at-aircraft views.

That said, the velocity (and hence Doppler) should be fixed now and in 
cockpit view should be working properly also (apart from a small offset 
bug that pops up every now and then causing the sound to 'wobble' around).

Erik

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-28 Thread Nicolas Quijano
Anybody got sounds working properly on *windows* (ATIS and aircraft sounds
working at the same time ?)
If yes, what is your setup, not just openAL wise, but do you also build OSG,
and if yes, with what options ?
Share as much as possible of your setup, if current CVS works for you,
please.

I think we might have some initialization issues coupled to timing issues,
as the same exe just had functioning ATIS on one run, and on the next, with
the same command line (not using fgrun for this) except log level set to
debug instead of info, ATIS wasn't working anymore.
In both cases, no aircraft sounds at all.
And the big problems started with rearrangement of the sound manager
initialisation in the init routines, iirc.
My october 2nd release build has fully working positional audio for
aircraft sounds, working ATIS, etc.
That might point to timing issues, no ?

I would be very surprised it's an OpenAL implementation/runtime problem as
I've tried every possible permutation of runtime, software device used, and
ways to build FGFS, including using OpenAL soft instead of the SDK or
Fredb's setup, and while changing runtimes (and rebooting) has no effect on
the games I have installed that use OpenAL for positional sound, it hasn't
made FGFS work properly.

Erik, if you have hints on what part of the code you'd like to step through
in the debugger here, I'd appreciate said pointers, rather than trying to
root out a bug whose location I'm all but sure about :)

Cheers and thanks for your cooperation all,
Nic



On Wed, Oct 28, 2009 at 10:33 AM, Erik Hofman e...@ehofman.com wrote:

 Csaba Halász wrote:
  Starting at EGLL with the default c172p, I notice:
  1) the engine sound is louder in cockpit than in external view
  2) tuning to ATIS 123.9 I get the source and listener distance
  greater than 50km! message (twice)
  3) tuning away from ATIS frequency does not stop ATIS sound

 The fixes for these problems have been committed to CVS now. beware:
 outside view orientation is still wring since the view manager behaves
 differently for inside-aircraft views and for look-at-aircraft views.

 That said, the velocity (and hence Doppler) should be fixed now and in
 cockpit view should be working properly also (apart from a small offset
 bug that pops up every now and then causing the sound to 'wobble' around).

 Erik


 --
 Come build with us! The BlackBerry(R) Developer Conference in SF, CA
 is the only developer event you need to attend this year. Jumpstart your
 developing skills, take BlackBerry mobile applications to market and stay
 ahead of the curve. Join us from November 9 - 12, 2009. Register now!
 http://p.sf.net/sfu/devconference
 ___
 Flightgear-devel mailing list
 Flightgear-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/flightgear-devel




-- 
Be Kind.
Remember, everyone is fighting a hard battle.
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-28 Thread Nicolas Quijano
Forgot to mention it's still crashing in Debug mode due to a corrupt heap
(according to the debugger, this is the likely culprit) on the
SGSoundSample::free_data() call, you guessed it, on the same spot as a
couple weeks back : rumble.wav.
No changes in behaviour in DEBUG mode even with all the recent changes.
Which could also point to other misbehaved code, maybe even outside the
sound code.
I simply don't know.

Cheers,
Nic

On Wed, Oct 28, 2009 at 4:29 PM, Nicolas Quijano nquij...@gmail.com wrote:

 Anybody got sounds working properly on *windows* (ATIS and aircraft sounds
 working at the same time ?)
 If yes, what is your setup, not just openAL wise, but do you also build
 OSG, and if yes, with what options ?
 Share as much as possible of your setup, if current CVS works for you,
 please.

 I think we might have some initialization issues coupled to timing issues,
 as the same exe just had functioning ATIS on one run, and on the next, with
 the same command line (not using fgrun for this) except log level set to
 debug instead of info, ATIS wasn't working anymore.
 In both cases, no aircraft sounds at all.
 And the big problems started with rearrangement of the sound manager
 initialisation in the init routines, iirc.
 My october 2nd release build has fully working positional audio for
 aircraft sounds, working ATIS, etc.
 That might point to timing issues, no ?

 I would be very surprised it's an OpenAL implementation/runtime problem as
 I've tried every possible permutation of runtime, software device used, and
 ways to build FGFS, including using OpenAL soft instead of the SDK or
 Fredb's setup, and while changing runtimes (and rebooting) has no effect on
 the games I have installed that use OpenAL for positional sound, it hasn't
 made FGFS work properly.

 Erik, if you have hints on what part of the code you'd like to step through
 in the debugger here, I'd appreciate said pointers, rather than trying to
 root out a bug whose location I'm all but sure about :)

 Cheers and thanks for your cooperation all,
 Nic






-- 
Be Kind.
Remember, everyone is fighting a hard battle.
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-28 Thread Csaba Halász
Hi Erik!

If a sound sample keeps its default orientation of all zeroes then in
SGSoundSample::update_absolute_position the sc2body*q will be also
null and cause a division by zero in SGQuatdouble::backTransform.

-- 
Csaba/Jester

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-27 Thread Erik Hofman
dave perry wrote:
 I have been away on a trip for the last 5 days.  Today, I did a make 
 clean for both SimGear and fgfs before the compiles.  I launched fgfs on 
 the 32bit Athlon and at first, only ATC and no wind or aircraft sounds.  
 It was night, so I used the gui to change the time to afternoon and 
 what do you know, I have all the sounds.  If I change back to clock 
 time, only atc sound.  This is repeatable.

Anyone else who sees this? I tried it locally (with the latest CVS 
sources for SimGear and FlightGear) and I always get sound.

Erik

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-27 Thread Scott Hamilton
On Tue, 2009-10-27 at 09:03 +0100, Erik Hofman wrote:

 dave perry wrote:
  I have been away on a trip for the last 5 days.  Today, I did a make 
  clean for both SimGear and fgfs before the compiles.  I launched fgfs on 
  the 32bit Athlon and at first, only ATC and no wind or aircraft sounds.  
  It was night, so I used the gui to change the time to afternoon and 
  what do you know, I have all the sounds.  If I change back to clock 
  time, only atc sound.  This is repeatable.
 
 Anyone else who sees this? I tried it locally (with the latest CVS 
 sources for SimGear and FlightGear) and I always get sound.


  Actually for some aircraft I've lost all sounds, changing time (to one
of the presets or clock time) during flight made no difference;

 dhc8:
 engine - none
 flaps transit - none
 gear transit - none
 marker morse - none
 ATC - yes

 A380:
 engine - none
 wind - none
 tarmac rumble - none
 flaps transit - yes
 gear transit - none
 seat belt chime - yes
 marker morse - yes
 ATC  - yes
   
c172r
 engine - none
 wind - none
 flaps transit - none
 marker morse -  none
 ATC - yes
  
  The command line args are;

bin/fgfs --log-level=warn --enable-hud --enable-sound --airport=YSSY
--runway=34L --aircraft=c172r --enable-real-weather-fetch
--timeofday=morning --prop:/sim/sound/enabled=true


  I also noticed that if I change the main volume in the sound dialog,
it also reduces the ATC volume, I think the UI assumes they are
  separate volume controls? 

  
  Scott.




 
 Erik
 
 --
 Come build with us! The BlackBerry(R) Developer Conference in SF, CA
 is the only developer event you need to attend this year. Jumpstart your
 developing skills, take BlackBerry mobile applications to market and stay 
 ahead of the curve. Join us from November 9 - 12, 2009. Register now!
 http://p.sf.net/sfu/devconference
 ___
 Flightgear-devel mailing list
 Flightgear-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/flightgear-devel
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-27 Thread Alan Teeder
I had no sound yesterday evening - but this was an aircraft that I am
working on (JSBSim) and didn't investigate why this should be suddenly so.

As with Dave Perry I have an Athlon 32 bit machine.

 

  _  

From: Scott Hamilton [mailto:scott.hamil...@popplanet.biz] 
Sent: 27 October 2009 11:14
To: FlightGear developers discussions
Subject: Re: [Flightgear-devel] New Sound system committed

 

On Tue, 2009-10-27 at 09:03 +0100, Erik Hofman wrote: 

 
dave perry wrote:
 I have been away on a trip for the last 5 days.  Today, I did a make 
 clean for both SimGear and fgfs before the compiles.  I launched fgfs on 
 the 32bit Athlon and at first, only ATC and no wind or aircraft sounds.  
 It was night, so I used the gui to change the time to afternoon and 
 what do you know, I have all the sounds.  If I change back to clock 
 time, only atc sound.  This is repeatable.
 
Anyone else who sees this? I tried it locally (with the latest CVS 
sources for SimGear and FlightGear) and I always get sound.


  Actually for some aircraft I've lost all sounds, changing time (to one of
the presets or clock time) during flight made no difference;

dhc8:
 engine - none
 flaps transit - none
 gear transit - none
 marker morse - none
 ATC - yes

A380:
 engine - none
 wind - none
 tarmac rumble - none
 flaps transit - yes
 gear transit - none
 seat belt chime - yes
 marker morse - yes
 ATC  - yes
   
c172r
 engine - none
 wind - none
 flaps transit - none
 marker morse -  none
 ATC - yes
  
  The command line args are;

bin/fgfs --log-level=warn --enable-hud --enable-sound --airport=YSSY
--runway=34L --aircraft=c172r --enable-real-weather-fetch
--timeofday=morning --prop:/sim/sound/enabled=true


  I also noticed that if I change the main volume in the sound dialog, it
also reduces the ATC volume, I think the UI assumes they are
  separate volume controls? 

  
  Scott.






 
 
Erik
 

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-27 Thread Scott Hamilton
On Tue, 2009-10-27 at 22:13 +1100, Scott Hamilton wrote:


   I forgot to mention;

64bit AMD CPU
2.6.27.29-0.1-default #1 SMP 2009-08-15 17:53:59 +0200 x86_64 x86_64
x86_64 GNU/Linux
freealut 1.1.0 (from creative labs, compiled from source)
openal-soft-1.9.563 (compiled from source) 

19: PCI 06.1: 0403 Audio device
  [Created at pci.318]
  Hardware Class: sound
  Model: nVidia MCP55 High Definition Audio
  Vendor: pci 0x10de nVidia Corporation
  Device: pci 0x0371 MCP55 High Definition Audio
  SubVendor: pci 0x1462 Micro-Star International Co., Ltd.
  SubDevice: pci 0x7250
  Revision: 0xa2
  Driver: HDA Intel
  Driver Modules: snd_hda_intel


 
   Actually for some aircraft I've lost all sounds, changing time (to
 one of the presets or clock time) during flight made no difference;
 
 dhc8:
  engine - none
  flaps transit - none
  gear transit - none
  marker morse - none
  ATC - yes
 
 A380:
  engine - none
  wind - none
  tarmac rumble - none
  flaps transit - yes
  gear transit - none
  seat belt chime - yes
  marker morse - yes
  ATC  - yes

 c172r
  engine - none
  wind - none
  flaps transit - none
  marker morse -  none
  ATC - yes
   
   The command line args are;
 
 bin/fgfs --log-level=warn --enable-hud --enable-sound --airport=YSSY
 --runway=34L --aircraft=c172r --enable-real-weather-fetch
 --timeofday=morning --prop:/sim/sound/enabled=true
 
 
   I also noticed that if I change the main volume in the sound dialog,
 it also reduces the ATC volume, I think the UI assumes they are
   separate volume controls? 
 
   
   Scott.
 
 
 
 
  
  Erik
  
  --
  Come build with us! The BlackBerry(R) Developer Conference in SF, CA
  is the only developer event you need to attend this year. Jumpstart your
  developing skills, take BlackBerry mobile applications to market and stay 
  ahead of the curve. Join us from November 9 - 12, 2009. Register now!
  http://p.sf.net/sfu/devconference
  ___
  Flightgear-devel mailing list
  Flightgear-devel@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/flightgear-devel
 
 --
 Come build with us! The BlackBerry(R) Developer Conference in SF, CA
 is the only developer event you need to attend this year. Jumpstart your
 developing skills, take BlackBerry mobile applications to market and stay 
 ahead of the curve. Join us from November 9 - 12, 2009. Register now!
 http://p.sf.net/sfu/devconference
 ___ Flightgear-devel mailing list 
 Flightgear-devel@lists.sourceforge.net 
 https://lists.sourceforge.net/lists/listinfo/flightgear-devel
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-27 Thread Erik Hofman

This is getting silly. I've now committed code that checks is the source 
and listener are further apart than 50km or if there are any NaN's in 
the position, orientation or velocity data of the source or listener.
If the sound is still inaudible while FlightGear prints a warning in the 
sort of NaN detected in position or source and listener distance 
greater than 50km then I'm really going to suspect a bug in the OpenAL 
implementation.

Erik

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-27 Thread Erik Hofman
Alan Teeder wrote:
 I had no sound yesterday evening – but this was an aircraft that I am 
 working on (JSBSim) and didn’t investigate why this should be suddenly so.

Just one thing; I'm testing the airports you all provide without the 
proper scenery for that area. Could you try the same by setting 
--fg-scenery=/tmp for instance?

Erik

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-27 Thread dave perry
Well, after an update this morning, I am back to only atc sounds on my 
Athlon 32 bit machine independent of the gui time selection. As noted in 
an earlier post, I had the aircraft sounds start once after I used the 
gui debug reload of the autopilot config file.
openal-0.0.9-0.15.20060204cvs.fc9.i386
freealut-1.1.0-6.fc9.i386
FC10 up to date

Alan Teeder wrote:

 I had no sound yesterday evening – but this was an aircraft that I am 
 working on (JSBSim) and didn’t investigate why this should be suddenly so.

 As with Dave Perry I have an Athlon 32 bit machine.

 

 *From:* Scott Hamilton [mailto:scott.hamil...@popplanet.biz]
 *Sent:* 27 October 2009 11:14
 *To:* FlightGear developers discussions
 *Subject:* Re: [Flightgear-devel] New Sound system committed

 On Tue, 2009-10-27 at 09:03 +0100, Erik Hofman wrote:

  
 dave perry wrote:
  I have been away on a trip for the last 5 days.  Today, I did a make 
  clean for both SimGear and fgfs before the compiles.  I launched fgfs on 
  the 32bit Athlon and at first, only ATC and no wind or aircraft sounds.  
  It was night, so I used the gui to change the time to afternoon and 
  what do you know, I have all the sounds.  If I change back to clock 
  time, only atc sound.  This is repeatable.
  
 Anyone else who sees this? I tried it locally (with the latest CVS 
 sources for SimGear and FlightGear) and I always get sound.


 Actually for some aircraft I've lost all sounds, changing time (to one 
 of the presets or clock time) during flight made no difference;

 dhc8:
 engine - none
 flaps transit - none
 gear transit - none
 marker morse - none
 ATC - yes

 A380:
 engine - none
 wind - none
 tarmac rumble - none
 flaps transit - yes
 gear transit - none
 seat belt chime - yes
 marker morse - yes
 ATC - yes

 c172r
 engine - none
 wind - none
 flaps transit - none
 marker morse - none
 ATC - yes

 The command line args are;

 bin/fgfs --log-level=warn --enable-hud --enable-sound --airport=YSSY 
 --runway=34L --aircraft=c172r --enable-real-weather-fetch 
 --timeofday=morning --prop:/sim/sound/enabled=true


 I also noticed that if I change the main volume in the sound dialog, 
 it also reduces the ATC volume, I think the UI assumes they are
 separate volume controls?


 Scott.




  
  
 Erik
  


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-27 Thread Csaba Halász
On Tue, Oct 27, 2009 at 1:23 PM, Erik Hofman e...@ehofman.com wrote:

 This is getting silly. I've now committed code that checks is the source
 and listener are further apart than 50km or if there are any NaN's in
 the position, orientation or velocity data of the source or listener.
 If the sound is still inaudible while FlightGear prints a warning in the
 sort of NaN detected in position or source and listener distance
 greater than 50km then I'm really going to suspect a bug in the OpenAL
 implementation.

Starting at EGLL with the default c172p, I notice:
1) the engine sound is louder in cockpit than in external view
2) tuning to ATIS 123.9 I get the source and listener distance
greater than 50km! message (twice)
3) tuning away from ATIS frequency does not stop ATIS sound

About item #3: lines 267-8 in ATC.cxx:
_sgr-stop(refname);
_sgr-remove(refname);
stop() only sets a flag that is checked in SGSampleGroup::update.
However, remove() removes the sample immediately from the _samples
collection and puts it into the _removed_samples. From there, only
sounds that are really stopped (OpenAl-wise) get cleaned up. Except
the update() never gets a chance to stop the sample because it is
already removed from the active collection. (ATIS is not the only
example for this)

Looking at the code I spotted that FGATC::_playing isn't initialized
in the constructor, please fix it if you have a spare moment. Also,
generating random refname for sound samples but then using a different
refname to add it into the _samples collection is confusing. I mean,
It sure confused me, I thought I was seeing memory corruption and
started to hunt it down :)

-- 
Csaba/Jester

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-27 Thread jorg van der venne
I had the same problem for 4 days and I tried about everything but nothing
seemed to work until i just compiled OpenAL-Soft and then Alut and then
make clean on SimGear and Flightgear followed by the installation and it
worked.

Al packages were checked-out Sunday 25th. I am sure it was svn://
connect.creativelabs.com/OpenAL/trunk/OpenAL-Soft
 svn://connect.creativelabs.com/OpenAL/trunk/Alut that fixed my problem

Hope this helps!

specs:
x86_64
CrossLinuxFromScratch svn-20090309
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-27 Thread James Sleeman

On 28/10/09 08:22, jorg van der venne wrote:
Al packages were checked-out Sunday 25th. I am sure it was 
svn://connect.creativelabs.com/OpenAL/trunk/OpenAL-Soft 
http://connect.creativelabs.com/OpenAL/trunk/OpenAL-Soft
 svn://connect.creativelabs.com/OpenAL/trunk/Alut 
http://connect.creativelabs.com/OpenAL/trunk/Alut that fixed my problem
I think distributions will be using a much older OpenAL-Soft.  My  
up-to-date Ubuntu 9.04 has OpenAL-Soft 1.4.272 by the looks of it, 
current version of OpenAL-Soft is 1.9.563 according to 
http://kcat.strangesoft.net/openal.html


I wonder if this is the cause of the differing problems people are seeing.


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-26 Thread dave perry
Erik Hofman wrote:
 It would be nice to know who of you who have problems run on 64-bit and 
 if any one with these problems (sounds not playing) actually runs in 32-bit.

 Erik

 --
 Come build with us! The BlackBerry(R) Developer Conference in SF, CA
 is the only developer event you need to attend this year. Jumpstart your
 developing skills, take BlackBerry mobile applications to market and stay 
 ahead of the curve. Join us from November 9 - 12, 2009. Register now!
 http://p.sf.net/sfu/devconference
 ___
 Flightgear-devel mailing list
 Flightgear-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/flightgear-devel

   
I have a 64bit Intel core2 duo notebook FC10 that the sound mostly works 
(no dopler).  I have a 32bit Athlon XP 3200+  FC10 that has no sound 
other than ATC.

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-26 Thread dave perry
dave perry wrote:
 Erik Hofman wrote:
   
 It would be nice to know who of you who have problems run on 64-bit and 
 if any one with these problems (sounds not playing) actually runs in 32-bit.

 Erik

 --
 Come build with us! The BlackBerry(R) Developer Conference in SF, CA
 is the only developer event you need to attend this year. Jumpstart your
 developing skills, take BlackBerry mobile applications to market and stay 
 ahead of the curve. Join us from November 9 - 12, 2009. Register now!
 http://p.sf.net/sfu/devconference
 ___
 Flightgear-devel mailing list
 Flightgear-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/flightgear-devel

   
 
 I have a 64bit Intel core2 duo notebook FC10 that the sound mostly works 
 (no dopler).  I have a 32bit Athlon XP 3200+  FC10 that has no sound 
 other than ATC.

   
Hi Erik,

I have been away on a trip for the last 5 days.  Today, I did a make 
clean for both SimGear and fgfs before the compiles.  I launched fgfs on 
the 32bit Athlon and at first, only ATC and no wind or aircraft sounds.  
It was night, so I used the gui to change the time to afternoon and 
what do you know, I have all the sounds.  If I change back to clock 
time, only atc sound.  This is repeatable.

Dave P.

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-24 Thread syd adams
I did a new cvs checkout of flightgear and simgear, and I now have sound
again ...

Althought a separate problem popped up , trying to compile FG crashed until
I recompiled simgear with jpeg factory support.
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-24 Thread Nicolas Quijano
typo in ATCDCL/AIPlane.cxx : at line 198, sizte_t len; should be size_t len;
Cheers,
Nic

On Sat, Oct 24, 2009 at 2:43 PM, syd adams adams@gmail.com wrote:

 I did a new cvs checkout of flightgear and simgear, and I now have sound
 again ...

 Althought a separate problem popped up , trying to compile FG crashed until
 I recompiled simgear with jpeg factory support.




 --
 Come build with us! The BlackBerry(R) Developer Conference in SF, CA
 is the only developer event you need to attend this year. Jumpstart your
 developing skills, take BlackBerry mobile applications to market and stay
 ahead of the curve. Join us from November 9 - 12, 2009. Register now!
 http://p.sf.net/sfu/devconference
 ___
 Flightgear-devel mailing list
 Flightgear-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/flightgear-devel




-- 
Be Kind.
Remember, everyone is fighting a hard battle.
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-24 Thread Nicolas Quijano
Build with Fredb's setup, using the OpenAL Soft provided device on windows
vista 64, I get multiple working sound.
Of course, no distance attenuation, as you mentioned.
Had to def out the the code mentioned in previous mail, because there is
another bug in there that prevents building :
SGSoundSample* simple = new SGSoundSample(buf, len, 8000 ); (line 201 in
ATCDCL/AIPlane.cxx) expects a void ** and buf is a void *

Will try an OpenAL SDK build later on, but that should work too.
Thanks for the continuous hard work Erik,
Looking forward to having distance attenuation and doppler effects back in
full force,
Cheers,
Nic

On Sat, Oct 24, 2009 at 3:29 PM, Nicolas Quijano nquij...@gmail.com wrote:

 typo in ATCDCL/AIPlane.cxx : at line 198, sizte_t len; should be size_t
 len;
 Cheers,
 Nic

 On Sat, Oct 24, 2009 at 2:43 PM, syd adams adams@gmail.com wrote:

 I did a new cvs checkout of flightgear and simgear, and I now have sound
 again ...

 Althought a separate problem popped up , trying to compile FG crashed
 until I recompiled simgear with jpeg factory support.




 --
 Come build with us! The BlackBerry(R) Developer Conference in SF, CA
 is the only developer event you need to attend this year. Jumpstart your
 developing skills, take BlackBerry mobile applications to market and stay
 ahead of the curve. Join us from November 9 - 12, 2009. Register now!
 http://p.sf.net/sfu/devconference
 ___
 Flightgear-devel mailing list
 Flightgear-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/flightgear-devel




 --
 Be Kind.
 Remember, everyone is fighting a hard battle.




-- 
Be Kind.
Remember, everyone is fighting a hard battle.
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-24 Thread Vivian Meazza
Hi Nic

 

OpenAL SDK builds here,

 

Vivian

 

-Original Message-
From: Nicolas Quijano [mailto:nquij...@gmail.com] 
Sent: 24 October 2009 20:44
To: FlightGear developers discussions
Subject: Re: [Flightgear-devel] New Sound system committed

 

Build with Fredb's setup, using the OpenAL Soft provided device on windows
vista 64, I get multiple working sound. 
Of course, no distance attenuation, as you mentioned. 
Had to def out the the code mentioned in previous mail, because there is
another bug in there that prevents building : 
SGSoundSample* simple = new SGSoundSample(buf, len, 8000 ); (line 201 in
ATCDCL/AIPlane.cxx) expects a void ** and buf is a void *

Will try an OpenAL SDK build later on, but that should work too. 
Thanks for the continuous hard work Erik, 
Looking forward to having distance attenuation and doppler effects back in
full force, 
Cheers, 
Nic

On Sat, Oct 24, 2009 at 3:29 PM, Nicolas Quijano nquij...@gmail.com wrote:

typo in ATCDCL/AIPlane.cxx : at line 198, sizte_t len; should be size_t len;
Cheers,
Nic

On Sat, Oct 24, 2009 at 2:43 PM, syd adams adams@gmail.com wrote:

I did a new cvs checkout of flightgear and simgear, and I now have sound
again ...

Althought a separate problem popped up , trying to compile FG crashed until
I recompiled simgear with jpeg factory support.





--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel




-- 
Be Kind. 
Remember, everyone is fighting a hard battle.




-- 
Be Kind. 
Remember, everyone is fighting a hard battle.

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-24 Thread Tim Moore
On 10/24/2009 09:29 PM, Nicolas Quijano wrote:
 typo in ATCDCL/AIPlane.cxx : at line 198, sizte_t len; should be size_t len;
 Cheers,
 Nic
 
Fixed.
Thanks,
Tim

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-23 Thread Erik Hofman
Hans Janssen wrote:
 Sound is playing but it is off at 0.0 or full on from 0.01 to 1.0, 
 changing the volume between 0.01 and 1.0 doesn't do anything and at 0.01 
 there's almost no windy noise and i can here the atc-chatter, from 0.04 
 the noise is loud again.
 Also the atc-chatter volume setting doesn't do anything, it is either on 
 or off.

Ok I can confirm this.

 I am running Arhlinux x86_64 with openal 1.9.563 and freealut 1.1.0.

Seems to be a popular platform for running FlightGear, only I'm running 
in 32-bit w. OpenAL-Soft without the sound-not-playing problems.

Erik

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-23 Thread Scott Hamilton
On Fri, 2009-10-23 at 13:36 +0200, Erik Hofman wrote:

   This is a bit weird, but it seems like something isn't letting go of
the sound device.  If I run
   the openal_test2 the first time, everything goes fine, it plays all 6
samples and then unbinds.

   If I then run openal_test2 within about 5seconds, I hear nothing but
it says it is playing all 6 samples again.

   If I wait for around 10seconds, then I hear the rumbling noise on the
second run.


   Hope this might be helpful??
   S.

   

 Hans Janssen wrote:
  Sound is playing but it is off at 0.0 or full on from 0.01 to 1.0, 
  changing the volume between 0.01 and 1.0 doesn't do anything and at 0.01 
  there's almost no windy noise and i can here the atc-chatter, from 0.04 
  the noise is loud again.
  Also the atc-chatter volume setting doesn't do anything, it is either on 
  or off.
 
 Ok I can confirm this.
 
  I am running Arhlinux x86_64 with openal 1.9.563 and freealut 1.1.0.
 
 Seems to be a popular platform for running FlightGear, only I'm running 
 in 32-bit w. OpenAL-Soft without the sound-not-playing problems.
 
 Erik
 
 --
 Come build with us! The BlackBerry(R) Developer Conference in SF, CA
 is the only developer event you need to attend this year. Jumpstart your
 developing skills, take BlackBerry mobile applications to market and stay 
 ahead of the curve. Join us from November 9 - 12, 2009. Register now!
 http://p.sf.net/sfu/devconference
 ___
 Flightgear-devel mailing list
 Flightgear-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/flightgear-devel
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-23 Thread Erik Hofman
Scott Hamilton wrote:
 On Fri, 2009-10-23 at 13:36 +0200, Erik Hofman wrote:
 
This is a bit weird, but it seems like something isn't letting go of 
 the sound device.  If I run
the openal_test2 the first time, everything goes fine, it plays all 6 
 samples and then unbinds.
 
If I then run openal_test2 within about 5seconds, I hear nothing but 
 it says it is playing all 6 samples again.
 
If I wait for around 10seconds, then I hear the rumbling noise on the 
 second run.

Yet again, I don't have this problem which makes is hard to debug :-/

Erik

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-23 Thread syd adams
Im using ArchLinux on 32 bit Athlon XP, but with sound problems :)

Seems to be a popular platform for running FlightGear, only I'm running
 in 32-bit w. OpenAL-Soft without the sound-not-playing problems.


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-23 Thread Ron Jensen
On Mon, 2009-10-19 at 13:47 +0200, Erik Hofman wrote:
 James Sleeman wrote:
Seems to be working ok, a bit, umm, stuttery, sort of, particularly
  background wind, seemed to switch left-right a bit, but those problems 
  might just be me, maybe even just an illusion.
 
 Yeah that's probably doe to improper position or orientation.Still 
 working on that.
 
  And I have no doppler, but that's a known problem I think with 
  OpenAL-Soft (previously I have forced the define to have software 
  doppler from memory, but I think that section of code is now removed, 
  maybe the defines still work though, will try again sometime) --- was 
 
 The odd part is, Doppler is working for the F-16 and Fokker-100 for 
 example. It's as if OpenAL is limiting the total pitch to 2.0 which 
 means that AL_PITCH and Doppler combined can not be higher than 2 times 
 the normal playback frequency. Or something like that.
 
 Erik

Not sure where to jump into this thread, but...  I decided to update
today, with much dread...  First I built simgear and openal_test1  2
went well, so I pushed on and did fgfs, too.  

Mostly it works.  The only issue I noticed was doppler on the marker
beacon.  A _lot_ of doppler.  I was in the storch doing maybe 200 km/h,
and the marker was pitch-shifted beyond recognition.  There was no
doppler when I went to runway view.

Debian

freealut 1.1.0-1  (Yes, from before they switched to openal-soft)
libopenal-dev 1:0.0.8-7
libopenal0a 1:0.0.8-7

Hope this helps in some small way.

Ron




--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-23 Thread Alasdair Campbell
On Fri, 2009-10-23 at 04:05 +0100, Alasdair Campbell wrote:
 On Thu, 2009-10-22 at 21:22 +0200, Erik Hofman wrote:
  It would be nice to know who of you who have problems run on 64-bit and 
  if any one with these problems (sounds not playing) actually runs in 32-bit.
  
  Erik
  
 AS you speak, I am currently resurrecting my 32 bit Athlon machine to
 compare with dual core AMD64. I will advise you of results.
 
 Alasdair
 
Compare dual core 64 bit Athlon (7450) with single core Athlon (3200XP)

## Running latest Debian Squeeze (as at 23 Oct 2009)
## openal version (deb)  1:1.9.563-1
## alut version (deb)1.1.0-2
## osg version OpenSceneGraph-2.8.1


## executrix is dual core amd64 (7450)  

alasd...@executrix:~$ fgfs
SoundManager bind
Initializing OpenAL sound manager
128 free sources found
FGMultiplayMgr - No receiver port, Multiplayermode disabled
SoundManager suspend
SoundManager resume
KI266 dme indicator #0 initialized
loading scenario 'nimitz_demo'
creating 3D noise texture... DONE
Initializing Nasal Electrical System
power up
 I exit fgfs (pasted by me) 
SoundManager unbind
Stopping Sound Manager
Inconsistency detected by ld.so: dl-close.c: 719: _dl_close: Assertion
`map-l_init_called' failed!
alasd...@executrix:~$ 

Observations: (Default c172p)
Loud whooshing noise at start-up (engine off) as if in Victoria Falls
or powerfull wind tunnel.
Almost drowns out all other sounds including engine, flaps, etc.
ATC chatter audible (just). No ATIS. No voices with festival. No ATC
(reports rubbish entries on frequency scan)



## dominatrix is single core amd32 (3200) running latest Debian Squeeze
(as at 23 Oct 2009) 

alasd...@dominatrix:~$ fgfs
SoundManager bind
Initializing OpenAL sound manager
128 free sources found
FGMultiplayMgr - No receiver port, Multiplayermode disabled
KI266 dme indicator #0 initialized
loading scenario 'nimitz_demo'
creating 3D noise texture... DONE
Initializing Nasal Electrical System
power up
 I exit fgfs (pasted by me) 
SoundManager unbind
Stopping Sound Manager
Inconsistency detected by ld.so: dl-close.c: 719: _dl_close: Assertion
`map-l_init_called' failed!
alasd...@dominatrix:~$ 


Observations: (Default c172p)
Identical to those found with 64 bit dual core



Conclusion: These problems are not machine dependant.



--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-22 Thread syd adams
So far I've tried compiling several versions of openal-soft ... and only get
certain sounds , and always get an  'AL Error (atc):' in the terminal at
startup.
I get atc-chatter , and certain aircraft sounds like flaps , engine start
...
 I've tried openal-soft-1.8.466, 1.9.563 and the git version from
http://kcat.strangesoft.net/openal.html
Will keep trying...
Cheers
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-22 Thread Scott Hamilton


  Yeah I'm in the same situation, I've deleted all version of openal and
alut, and pulled down the source and compiled
  for openal and ALUT, still only get once and transit type of
sound, looped engine sounds I can't get. I'll keep looking
  I might try the old creative labs 0.8 version next... 


  S.

On Wed, 2009-10-21 at 23:51 -0700, syd adams wrote:

 So far I've tried compiling several versions of openal-soft ... and
 only get certain sounds , and always get an  'AL Error (atc):' in the
 terminal at startup.
 I get atc-chatter , and certain aircraft sounds like flaps , engine
 start ...
  I've tried openal-soft-1.8.466, 1.9.563 and the git version from
 http://kcat.strangesoft.net/openal.html
 Will keep trying...
 Cheers  
 
 --
 Come build with us! The BlackBerry(R) Developer Conference in SF, CA
 is the only developer event you need to attend this year. Jumpstart your
 developing skills, take BlackBerry mobile applications to market and stay 
 ahead of the curve. Join us from November 9 - 12, 2009. Register now!
 http://p.sf.net/sfu/devconference
 ___ Flightgear-devel mailing list 
 Flightgear-devel@lists.sourceforge.net 
 https://lists.sourceforge.net/lists/listinfo/flightgear-devel



**
This message is intended for the addressee named and may contain
privileged information or confidential information or both. If you
are not the intended recipient please delete it and notify the sender.
**
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-22 Thread Erik Hofman
syd adams wrote:
 So far I've tried compiling several versions of openal-soft ... and only 
 get certain sounds , and always get an  'AL Error (atc):' in the 
 terminal at startup.
 I get atc-chatter , and certain aircraft sounds like flaps , engine 
 start ...
  I've tried openal-soft-1.8.466, 1.9.563 and the git version from
 http://kcat.strangesoft.net/openal.html
 Will keep trying...

Let me begin with thanking everybody who is trying to help me sort out 
the bugs.

Then it turns out the 'stable' version of OpenAL I mentioned was a 
completely different implementation after all. Bat after a good night 
without much sleep I think I've a hunch where to look for it.

Erik

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-22 Thread syd adams
Glad you mentioned the sound type, I hadn't thought about it . Same result
here , looped sounds dont play ... but the rest seem to , ( Ive only
tested with my aircraft).

On Thu, Oct 22, 2009 at 12:01 AM, Scott Hamilton 
scott.hamil...@popplanet.biz wrote:



   Yeah I'm in the same situation, I've deleted all version of openal and
 alut, and pulled down the source and compiled
   for openal and ALUT, still only get once and transit type of sound,
 looped engine sounds I can't get. I'll keep looking
   I might try the old creative labs 0.8 version next...


   S.


 On Wed, 2009-10-21 at 23:51 -0700, syd adams wrote:

 So far I've tried compiling several versions of openal-soft ... and only
 get certain sounds , and always get an  'AL Error (atc):' in the terminal at
 startup.
 I get atc-chatter , and certain aircraft sounds like flaps , engine start
 ...
  I've tried openal-soft-1.8.466, 1.9.563 and the git version from
 http://kcat.strangesoft.net/openal.html
 Will keep trying...
 Cheers

 --
 Come build with us! The BlackBerry(R) Developer Conference in SF, CA
 is the only developer event you need to attend this year. Jumpstart your
 developing skills, take BlackBerry mobile applications to market and stay
 ahead of the curve. Join us from November 9 - 12, 2009. Register 
 now!http://p.sf.net/sfu/devconference
 ___ Flightgear-devel mailing list 
 Flightgear-devel@lists.sourceforge.net 
 https://lists.sourceforge.net/lists/listinfo/flightgear-devel



 **
 This message is intended for the addressee named and may contain
 privileged information or confidential information or both. If you
 are not the intended recipient please delete it and notify the sender.
 **


 --
 Come build with us! The BlackBerry(R) Developer Conference in SF, CA
 is the only developer event you need to attend this year. Jumpstart your
 developing skills, take BlackBerry mobile applications to market and stay
 ahead of the curve. Join us from November 9 - 12, 2009. Register now!
 http://p.sf.net/sfu/devconference
 ___
 Flightgear-devel mailing list
 Flightgear-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/flightgear-devel


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-22 Thread Curtis Olson
On Thu, Oct 22, 2009 at 2:11 PM, syd adams wrote:

 Glad you mentioned the sound type, I hadn't thought about it . Same result
 here , looped sounds dont play ... but the rest seem to , ( Ive only
 tested with my aircraft).


Just a little off topic, but congratulations Syd, you were the one hundredth
poster to this thread!

Curt.
-- 
Curtis Olson: http://baron.flightgear.org/~curt/
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-22 Thread Erik Hofman

It would be nice to know who of you who have problems run on 64-bit and 
if any one with these problems (sounds not playing) actually runs in 32-bit.

Erik

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-22 Thread Hans Janssen
Erik Hofman wrote:
 It would be nice to know who of you who have problems run on 64-bit and 
 if any one with these problems (sounds not playing) actually runs in 32-bit.
 
 Erik
 

Hello Erik,

Sound is playing but it is off at 0.0 or full on from 0.01 to 1.0, 
changing the volume between 0.01 and 1.0 doesn't do anything and at 0.01 
there's almost no windy noise and i can here the atc-chatter, from 0.04 
the noise is loud again.
Also the atc-chatter volume setting doesn't do anything, it is either on 
or off.

I am running Arhlinux x86_64 with openal 1.9.563 and freealut 1.1.0.

Hans


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-22 Thread syd adams
Yes !
Next goal is 200 :)

On Thu, Oct 22, 2009 at 12:14 PM, Curtis Olson curtol...@gmail.com wrote:

 On Thu, Oct 22, 2009 at 2:11 PM, syd adams wrote:

 Glad you mentioned the sound type, I hadn't thought about it . Same result
 here , looped sounds dont play ... but the rest seem to , ( Ive only
 tested with my aircraft).


 Just a little off topic, but congratulations Syd, you were the one
 hundredth poster to this thread!

 Curt.
 --
 Curtis Olson: 
 http://baron.flightgear.org/~curt/http://baron.flightgear.org/%7Ecurt/


 --
 Come build with us! The BlackBerry(R) Developer Conference in SF, CA
 is the only developer event you need to attend this year. Jumpstart your
 developing skills, take BlackBerry mobile applications to market and stay
 ahead of the curve. Join us from November 9 - 12, 2009. Register now!
 http://p.sf.net/sfu/devconference
 ___
 Flightgear-devel mailing list
 Flightgear-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/flightgear-devel


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-22 Thread Alasdair Campbell
On Thu, 2009-10-22 at 21:22 +0200, Erik Hofman wrote:
 It would be nice to know who of you who have problems run on 64-bit and 
 if any one with these problems (sounds not playing) actually runs in 32-bit.
 
 Erik
 
AS you speak, I am currently resurrecting my 32 bit Athlon machine to
compare with dual core AMD64. I will advise you of results.

Alasdair

 --
 Come build with us! The BlackBerry(R) Developer Conference in SF, CA
 is the only developer event you need to attend this year. Jumpstart your
 developing skills, take BlackBerry mobile applications to market and stay 
 ahead of the curve. Join us from November 9 - 12, 2009. Register now!
 http://p.sf.net/sfu/devconference
 ___
 Flightgear-devel mailing list
 Flightgear-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/flightgear-devel


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-21 Thread Erik Hofman
Scott Hamilton wrote:
 On Tue, 2009-10-20 at 13:34 +0200, Erik Hofman wrote:
 I've committed a few fixes to SimGear and FlightGear again.
 Please report any progress (and if preferably any command line options 
 if something fails).

 rpm -qa | grep openal
 libopenal0-soft-1.5.304-1.33
 openal-soft-1.5.304-1.33
 libopenal1-soft-1.5.304-1.33
 openal-soft-devel-1.5.304-1.33

 Hope that helps, but I still have no engine sound on any aircraft I've 
 tried, and some sounds, like the flaps sound, work on some aircraft?
 Anything else I can provide to assist with debugging?

I've had a report that the latest *stable* version of OpenAL-Soft does 
work properly while a developers release behaved just like you describe.
It would be nice if you would want to test the latest stable version.

Erik

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-21 Thread Erik Hofman
Erik Hofman wrote:
   I've had a report that the latest *stable* version of OpenAL-Soft does
 work properly while a developers release behaved just like you describe.
 It would be nice if you would want to test the latest stable version.

I do notice thought that in fly-by view engine sound can either be 
silent or always close by. Have to look at that.

Erik

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-21 Thread dave perry
Erik Hofman wrote:
 dave perry wrote:
   
 dave perry wrote:
 
 With an update this morning from cvs, I still only hear ATC and that 
 with frequency distortion.  Did I miss a required library change?  I 
 have openal-0.0.9-0.15.20060204cvs.fc9.i386 and 
 freealut-1.1.0-6.fc9.i386 with fc10.

   
   
 The above is on my desktop (Athlon XP 3200+, current FC10, AC'97 Chip 
 ALC650.

 I also have a notebook with an Intel core2 duo running FC10 64 bit.  On 
 this system I get all the AC sounds but still distorted ATC.  I am using 
 the following update script on both systems.
 

 Sorry I have been busy fixing technical bugs lately. Functional bugs are 
 for a later date. So it's not your setup thats the problem.

 Erik

   
Hi Erik,

I was tweaking an autopilot config file today on my desktop (which has 
not had any aircraft sounds).  After about an hour of flight reloading 
the autopilot config many times after edits, suddenly I have aircraft 
sounds after one of the autopilot reloads.  It remained on until I 
reloaded fgfs.  Last update from cvs yesterday evening.

Dave P.

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-21 Thread Vivian Meazza
dave perry wrote

 
 Erik Hofman wrote:
  dave perry wrote:
 
  dave perry wrote:
 
  With an update this morning from cvs, I still only hear ATC and that
  with frequency distortion.  Did I miss a required library change?  I
  have openal-0.0.9-0.15.20060204cvs.fc9.i386 and
  freealut-1.1.0-6.fc9.i386 with fc10.
 
 
 
  The above is on my desktop (Athlon XP 3200+, current FC10, AC'97 Chip
  ALC650.
 
  I also have a notebook with an Intel core2 duo running FC10 64 bit.  On
  this system I get all the AC sounds but still distorted ATC.  I am
 using
  the following update script on both systems.
 
 
  Sorry I have been busy fixing technical bugs lately. Functional bugs are
  for a later date. So it's not your setup thats the problem.
 
  Erik
 
 
 Hi Erik,
 
 I was tweaking an autopilot config file today on my desktop (which has
 not had any aircraft sounds).  After about an hour of flight reloading
 the autopilot config many times after edits, suddenly I have aircraft
 sounds after one of the autopilot reloads.  It remained on until I
 reloaded fgfs.  Last update from cvs yesterday evening.
 

No ATC sound here with MSVC9 either.

But there is improvement. FG fails to compile out of the box. It fails in
AIPlane.cxx line #204:

std::auto_ptrunsigned char ptr( buf.c_str() );

The fix is to #ifdef that section out - no harm seems to be done by doing
that. I think that bit is all terminally broken anyway.

That done, FG compiles and runs. It now exits without a crash. So that's the
good news. The bad news is that in test trains/railways here it all stops
after about an hour. Framerates become protracted, tiles fail to load, and
FG finally grinds to a halt.

Interestingly, in similar tests before the new sound system was committed
both Jon Stockill and I left FG running overnight with no ill effects.


Are we there yet? No, but we're getting there


Vivian



--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-20 Thread Erik Hofman
dave perry wrote:
 dave perry wrote:
 With an update this morning from cvs, I still only hear ATC and that 
 with frequency distortion.  Did I miss a required library change?  I 
 have openal-0.0.9-0.15.20060204cvs.fc9.i386 and 
 freealut-1.1.0-6.fc9.i386 with fc10.

   
 The above is on my desktop (Athlon XP 3200+, current FC10, AC'97 Chip 
 ALC650.
 
 I also have a notebook with an Intel core2 duo running FC10 64 bit.  On 
 this system I get all the AC sounds but still distorted ATC.  I am using 
 the following update script on both systems.

Sorry I have been busy fixing technical bugs lately. Functional bugs are 
for a later date. So it's not your setup thats the problem.

Erik

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-20 Thread Erik Hofman
I've committed a few fixes to SimGear and FlightGear again.
Please report any progress (and if preferably any command line options 
if something fails).

Erik

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-20 Thread leee
On Monday 19 Oct 2009, Erik Hofman wrote:
[snip...]

 The odd part is, Doppler is working for the F-16 and Fokker-100
 for example. It's as if OpenAL is limiting the total pitch to 2.0
 which means that AL_PITCH and Doppler combined can not be higher
 than 2 times the normal playback frequency. Or something like
 that.

 Erik

I think the maximum drop of pitch is 0.5 of the emitted frequency, 
at least for a stationary receiver and a sub-sonic source.

If...

  Fo= emitted frequency
  V= velocity of waves in the medium
  Vs= velocity of the source relative to the medium
  Vr= velocity of the receiver relative to the medium
  Fr= frequency observed by the receiver

Then...

  Fr= Fo * ( (V + Vr) / (V + Vs) )

So when Vr= 0
and Vs= V (i.e. the speed of sound)

  V / (V + Vs) = 0.5

So Fr= Fo * 0.5 for something receding at V

which means that for sound, the pitch can only drop to half of its 
original pitch while the source remains in the sub-sonic regime.

This doesn't apply when the source is approaching though, and I 
wonder if the people writing the Open_AL code just thought the 
effect was symmetrical i.e. if the pitch halves for a retreating 
source then it should double for an approaching source.

LeeE

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-20 Thread Erik Hofman
leee wrote:
 This doesn't apply when the source is approaching though, and I 
 wonder if the people writing the Open_AL code just thought the 
 effect was symmetrical i.e. if the pitch halves for a retreating 
 source then it should double for an approaching source.

I thin k I know what the problem is. I just tested it with my own 
implementation and Doppler just starts to kick in when the viewer 
location is changing again. So fast moving planes do get Doppler effect 
but for slower ones it's hardly noticeable.

It should be audible when passing the tower position for instance.

Erik

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-20 Thread Durk Talsma
On Sunday 18 October 2009 11:04:24 am Erik Hofman wrote:
 Durk Talsma wrote:
  When I start the CitationX, I hear the engine and other sounds.  For
  several other aircraft, including the Cessna 172,and the  Lockheed1049h,
  I don't hear anything. I also get the pops when starting and closing
  flightgear.

 I suspect there still is a positioning or orientation problem hiding
 somewhere that's causing it. My speed lessons in quaternations don't pay
 out just yet I guess.

Sound works pretty well now. Thanks. 

The only thing I noticed is that sound volume can sometimes differ quite 
drastically between sessions. Yesterday,  sound volume was overwhelming, and 
today it appeared to be a lot softer. Even after accounting for the fact that 
I turned down the volume considerably yesterday. :-) Not sure whether this 
reflects a change that was introduced today, or whether initial sound volume 
is not initialized properly (I seem to have noticed this before).  

Evidence regarding sound volume is still anecdotal. I'll report back after 
some more systematic testing.

Cheers,
Durk

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-20 Thread Scott Hamilton
On Tue, 2009-10-20 at 13:34 +0200, Erik Hofman wrote:

 I've committed a few fixes to SimGear and FlightGear again.
 Please report any progress (and if preferably any command line options 
 if something fails).



 rpm -qa | grep openal
libopenal0-soft-1.5.304-1.33
openal-soft-1.5.304-1.33
libopenal1-soft-1.5.304-1.33
openal-soft-devel-1.5.304-1.33
 rpm -qa | grep freealut
freealut-1.1.0-3.138
freealut-devel-1.1.0-3.138


cd Simgear/source
make clean
cvs update -Ad .
make 
  snipped

g++ -DHAVE_CONFIG_H -I. -I../../simgear -I../.. -DSRC_DIR=
\../../simgear/sound\  -I/u01/app/SimGear-1.99/include
-I/usr/X11R6/include  -DDEBUG -g -Wall -march=athlon64 -D_REENTRANT -MT
sample_group.o -MD -MP -MF .deps/sample_group.Tpo -c -o sample_group.o
sample_group.cxx
  
mv
-f .deps/sample_group.Tpo .deps/sample_group.Po 

   
g++ -DHAVE_CONFIG_H -I. -I../../simgear -I../.. -DSRC_DIR=
\../../simgear/sound\  -I/u01/app/SimGear-1.99/include
-I/usr/X11R6/include  -DDEBUG -g -Wall -march=athlon64 -D_REENTRANT -MT
sample_openal.o -MD -MP -MF .deps/sample_openal.Tpo -c -o
sample_openal.o
sample_openal.cxx   
   
mv
-f .deps/sample_openal.Tpo .deps/sample_openal.Po   

   
g++ -DHAVE_CONFIG_H -I. -I../../simgear -I../.. -DSRC_DIR=
\../../simgear/sound\  -I/u01/app/SimGear-1.99/include
-I/usr/X11R6/include  -DDEBUG -g -Wall -march=athlon64 -D_REENTRANT -MT
soundmgr_openal.o -MD -MP -MF .deps/soundmgr_openal.Tpo -c -o
soundmgr_openal.o
soundmgr_openal.cxx 
 
mv
-f .deps/soundmgr_openal.Tpo .deps/soundmgr_openal.Po   

   
g++ -DHAVE_CONFIG_H -I. -I../../simgear -I../.. -DSRC_DIR=
\../../simgear/sound\  -I/u01/app/SimGear-1.99/include
-I/usr/X11R6/include  -DDEBUG -g -Wall -march=athlon64 -D_REENTRANT -MT
xmlsound.o -MD -MP -MF .deps/xmlsound.Tpo -c -o xmlsound.o
xmlsound.cxx
  
mv
-f .deps/xmlsound.Tpo .deps/xmlsound.Po 

   
rm -f
libsgsound.a


ar cru libsgsound.a sample_group.o sample_openal.o soundmgr_openal.o
xmlsound.o  
 
ranlib libsgsound.a

  snipped   
make install

cd FlightGear/source
make clean
cvs update -Ad .
make
make install

bin/fgfs --enable-hud --enable-sound --airport=YSSY --runway=34L
--aircraft=dhc8 --enable-real-weather-fetch --timeofday=morning
--prop:/sim/sound/enabled=true
- no engine sound
- no flaps transit sound
- ATC chatter

bin/fgfs --enable-hud --enable-sound --airport=YSSY --runway=34L
--aircraft=787 --enable-real-weather-fetch --timeofday=morning
--prop:/sim/sound/enabled=true
- no apu sound
- no engine sound
- with flaps transit sound
- with ATC chatter
- no click sound
- no gear transit
- with marker morse

bin/fgfs --enable-hud --enable-sound --airport=YSSY --runway=34L
--aircraft=c172r --enable-real-weather-fetch --timeofday=morning
--prop:/sim/sound/enabled=true
- no engine sound
- no flap transit sound
- with ATC chatter

bin/fgfs --log-level=info --enable-hud --enable-sound --airport=YSSY
--runway=34L --aircraft=A380 --enable-real-weather-fetch
--timeofday=morning --prop:/sim/sound/enabled=true
- no APU sound
- no engine sound
- with flaps transit sound
- with ATC chatter
- no click sound
- no gear transit
- with marker morse
- with seatbelt chime


Hope that helps, but I still have no engine sound on any aircraft I've
tried, and some sounds, like the flaps sound, work on some aircraft? 
Anything else I can provide to assist with debugging?


S.





 
 Erik
 
 --
 Come build with us! The BlackBerry(R) Developer Conference in SF, CA
 is the only developer event you need to attend this year. Jumpstart your
 developing skills, take BlackBerry mobile applications to market and stay 
 ahead of the curve. Join us from November 9 - 12, 2009. Register now!
 http://p.sf.net/sfu/devconference
 ___
 Flightgear-devel mailing list
 Flightgear-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Re: [Flightgear-devel] New Sound system committed

2009-10-19 Thread Erik Hofman

Ok I think I've ironed out most of the bugs. I hope also the one that 
James reported but I don't hold my breath for it just yet.

Erik

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-19 Thread Erik Hofman
Nicolas Quijano wrote:

 Also, I see you replaced delete[], by delete in the sound sample destructor.
 Shouldn't we just be setting to NULL, and not delete, leaving it to the 
 original creator of the data, since the original allocation is done 
 somewhere else ?
 e.g _data never allocates, just points to data allocated somewhere else.
 The allocator should be the one deallocating, to make sure we don't have 
 dangling pointers.

It's not as easy as you might think;

Many sounds are created using SGSoundSample(path, filename) and the 
calling code has no clue about _data.

Also, the SoundManager is requested to take this sample into account. 
The caller never knows when the data is actually turned into an OpenAL 
buffer, meaning it could destroy the data before it is handed over to 
OpenAL if you're not careful.

And finally if the data is kept resident than all sound samples are 
resident in memory twice; once in the _data pointer and once in an 
OpenAL buffer. I like to keep that under control in case AI models also 
start producing sound effect.

All in all it's best to leave it to the SoundManager when to free up the 
data.

Erik

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-19 Thread James Turner

On 19 Oct 2009, at 11:47, Erik Hofman wrote:

 All in all it's best to leave it to the SoundManager when to free up  
 the
 data.

In which case, the external API should make it clear to users that  
this is the policy. For example, require users to pass the buffer in  
as an auto-ptr or or shared ptr.



--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-19 Thread James Sleeman
On 19/10/09 23:42, Erik Hofman wrote:
 Ok I think I've ironed out most of the bugs. I hope also the one that 
 James reported but I don't hold my breath for it just yet.
   

So far so good, compiles and runs, and produces sound.  Will try a short 
flight and see if any problems crop up.

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-19 Thread Erik Hofman
Olaf Flebbe wrote:
 #elif defined(OPENALSDK)
 # include al.h
 # include alc.h
 # include AL/alut.h

BTW this has also been committed like this.

Erik

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-19 Thread Erik Hofman
James Turner wrote:
 On 19 Oct 2009, at 11:47, Erik Hofman wrote:
 
 All in all it's best to leave it to the SoundManager when to free up  
 the
 data.
 
 In which case, the external API should make it clear to users that  
 this is the policy. For example, require users to pass the buffer in  
 as an auto-ptr or or shared ptr.

Hm, good idea.

Erik

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-19 Thread James Sleeman

On 20/10/09 00:07, James Sleeman wrote:

On 19/10/09 23:42, Erik Hofman wrote:
  
Ok I think I've ironed out most of the bugs. I hope also the one that 
James reported but I don't hold my breath for it just yet.



So far so good, compiles and runs, and produces sound.  Will try a short 
flight and see if any problems crop up.
  


Seems to be working ok, a bit, umm, stuttery, sort of, particularly 
background wind, seemed to switch left-right a bit, but those problems 
might just be me, maybe even just an illusion.


And I have no doppler, but that's a known problem I think with 
OpenAL-Soft (previously I have forced the define to have software 
doppler from memory, but I think that section of code is now removed, 
maybe the defines still work though, will try again sometime) --- was 
discussed here 
http://www.mail-archive.com/flightgear-devel@lists.sourceforge.net/msg19901.html






--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-19 Thread Erik Hofman
James Sleeman wrote:
   Seems to be working ok, a bit, umm, stuttery, sort of, particularly
 background wind, seemed to switch left-right a bit, but those problems 
 might just be me, maybe even just an illusion.

Yeah that's probably doe to improper position or orientation.Still 
working on that.

 And I have no doppler, but that's a known problem I think with 
 OpenAL-Soft (previously I have forced the define to have software 
 doppler from memory, but I think that section of code is now removed, 
 maybe the defines still work though, will try again sometime) --- was 

The odd part is, Doppler is working for the F-16 and Fokker-100 for 
example. It's as if OpenAL is limiting the total pitch to 2.0 which 
means that AL_PITCH and Doppler combined can not be higher than 2 times 
the normal playback frequency. Or something like that.

Erik

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-19 Thread Geoff McLane
On Mon, 2009-10-19 at 13:13 +0200, Erik Hofman wrote:
 Olaf Flebbe wrote:
  #elif defined(OPENALSDK)
  # include al.h
  # include alc.h
  # include AL/alut.h
 
 BTW this has also been committed like this.
 
 Erik

Hi Erik,

This is fine under OPENALSDK - any macro
switch in a storm ;=)) Thank you.

Now must find the time to build it,
and try out this 'modified' sound
system - in both WIN32 and Ubuntu-64!

Regards,

Geoff.



--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-19 Thread dave perry
James Sleeman wrote:
 On 20/10/09 00:07, James Sleeman wrote:
 On 19/10/09 23:42, Erik Hofman wrote:
   
 Ok I think I've ironed out most of the bugs. I hope also the one that 
 James reported but I don't hold my breath for it just yet.
 

 So far so good, compiles and runs, and produces sound.  Will try a short 
 flight and see if any problems crop up.
   

 Seems to be working ok, a bit, umm, stuttery, sort of, particularly 
 background wind, seemed to switch left-right a bit, but those 
 problems might just be me, maybe even just an illusion.

With an update this morning from cvs, I still only hear ATC and that 
with frequency distortion.  Did I miss a required library change?  I 
have openal-0.0.9-0.15.20060204cvs.fc9.i386 and 
freealut-1.1.0-6.fc9.i386 with fc10.


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-19 Thread Alasdair Campbell
On Tue, 2009-10-20 at 00:07 +1300, James Sleeman wrote:
 On 19/10/09 23:42, Erik Hofman wrote:
  Ok I think I've ironed out most of the bugs. I hope also the one that 
  James reported but I don't hold my breath for it just yet.

 
 So far so good, compiles and runs, and produces sound.  Will try a short 
 flight and see if any problems crop up.
 
I am still having problems with the new sound system.

I note in my flightgear terminal at start-up:
AL Error (atc):...
this is the SG_LOG message from SGSampleGroup::testForALError(string s)
where s = resume
I see that the message relates to an error number 40964 and that the
message is truncated, as there seems to be no return from the call to
alGetString(error). (Like a thread had died or something??)
The first call originates from ATC.cxx
{
SGSoundMgr *smgr;
smgr = (SGSoundMgr *)globals-get_subsystem(soundmgr);
_sgr = smgr-find(atc, true);
}
 commenting this out reveals more similar errors.

If I attempt to examine the return by saying something like:
   string myString = alGetString(error)
   cout  My string =   myString  endl;
then all manner of strange things occur including :
Unknown exception in the main loop. Aborting...
 Possible cause: no such file or directory

1) Is anyone else seeing this strange message (I am on AMD64, running
   Debian Squeeze)?
2) Is this peculiar behaviour an indicator to the odd things going on
   since the committment of the new system?

Kind regards
Alasdair
 
 --
 Come build with us! The BlackBerry(R) Developer Conference in SF, CA
 is the only developer event you need to attend this year. Jumpstart your
 developing skills, take BlackBerry mobile applications to market and stay 
 ahead of the curve. Join us from November 9 - 12, 2009. Register now!
 http://p.sf.net/sfu/devconference
 ___
 Flightgear-devel mailing list
 Flightgear-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/flightgear-devel


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-19 Thread Nicolas Quijano
AIPlane doesn't build here, a problem with conversion from a unsigned char*
to the std::auto pointer thingy here :

new SGSoundSample((unsigned char*)buf.c_str(), buf.length(), 8000 ); at line
204


Didn't get Alan's errors in SG 'though, even though I use the same compiler
as him.
Weird.

On Mon, Oct 19, 2009 at 11:02 AM, dave perry skida...@mindspring.comwrote:

 James Sleeman wrote:
  On 20/10/09 00:07, James Sleeman wrote:
  On 19/10/09 23:42, Erik Hofman wrote:
 
  Ok I think I've ironed out most of the bugs. I hope also the one that
  James reported but I don't hold my breath for it just yet.
 
 
  So far so good, compiles and runs, and produces sound.  Will try a short
  flight and see if any problems crop up.
 
 
  Seems to be working ok, a bit, umm, stuttery, sort of, particularly
  background wind, seemed to switch left-right a bit, but those
  problems might just be me, maybe even just an illusion.
 
 With an update this morning from cvs, I still only hear ATC and that
 with frequency distortion.  Did I miss a required library change?  I
 have openal-0.0.9-0.15.20060204cvs.fc9.i386 and
 freealut-1.1.0-6.fc9.i386 with fc10.



 --
 Come build with us! The BlackBerry(R) Developer Conference in SF, CA
 is the only developer event you need to attend this year. Jumpstart your
 developing skills, take BlackBerry mobile applications to market and stay
 ahead of the curve. Join us from November 9 - 12, 2009. Register now!
 http://p.sf.net/sfu/devconference
 ___
 Flightgear-devel mailing list
 Flightgear-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/flightgear-devel




-- 
Be Kind.
Remember, everyone is fighting a hard battle.
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-19 Thread Matias D'Ambrosio
On Sun, Oct 18, 2009 at 12:59 PM, Geoff McLane ubu...@geoffair.info wrote:
 Hi Vivian,

 using anything other than the
 latest build from Creative Labs?

 Well they could for example be using the openal-soft
  http://sourceforge.net/projects/openal-soft/
 which suggests it is version 1.2.??? And has a CVS
 download, and uses the 'AL' sub-directory!

 Software versions and standard versions are two different things, the
OpenAL specification is currently at version 1.1, OpenAL-Soft
implements it.
 Also, that's the wrong place,
 http://kcat.strangesoft.net/openal.html
 is the right one, which doesn't use CVS but git.

 cause a crash on exit here

 Have not been particularly following ALL the posts on
 this, but with MSVC9's debugger you should be able to
 'see' _EXACTLY_ where/when this happens...

 Quite frequently, in Debug mainly, but can happen also
 in 'random' memory in Release, it is due to things like -
   if ( _data )
      delete _data;  // a crash exit
 since, in Debug especially, such a variable is likely filled
 with a debug value, by the MSVC compiler, deliberately, and
 has has never been initialized to NULL in the code...

 This is very common... It seems GCC quite frequently ensures
 such 'memory', 'variables' etc are all zeros...
 I believe in debug mode gcc indeed initialises all memory to 0, this
of course should not be done in release mode. Release code should not
depend on the value of uninitialised variables.

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-19 Thread Nicolas Quijano
Still no proper sound, and I think (can't make an informed judgement, no
expert on threading) we have some serious timing issues on init and startup,
and not just on windows (people have reported the same kind of stuff on
Linux)
Deadlock in MP, have to kill fgfs with today's build (with code commented
out of AIPlane to build, but I don't use AI Traffic anyway. Would love not
to have to load all the AI routes and stuff when it's disabled)

No sound in single player, longer delay than usual before sim starts.
Might do some debugging later on, no time right now.
Cheers,
Nic




-- 
Be Kind.
Remember, everyone is fighting a hard battle.
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-19 Thread Alan Teeder
Did another CVS update after reading this post and get same result as
Nicolas

 

Alan

 

  _  

From: Nicolas Quijano [mailto:nquij...@gmail.com] 
Sent: 19 October 2009 16:24
To: FlightGear developers discussions
Subject: Re: [Flightgear-devel] New Sound system committed

 

AIPlane doesn't build here, a problem with conversion from a unsigned char*
to the std::auto pointer thingy here :

new SGSoundSample((unsigned char*)buf.c_str(), buf.length(), 8000 ); at line
204


Didn't get Alan's errors in SG 'though, even though I use the same compiler
as him. 
Weird. 

On Mon, Oct 19, 2009 at 11:02 AM, dave perry skida...@mindspring.com
wrote:

James Sleeman wrote:
 On 20/10/09 00:07, James Sleeman wrote:
 On 19/10/09 23:42, Erik Hofman wrote:

 Ok I think I've ironed out most of the bugs. I hope also the one that
 James reported but I don't hold my breath for it just yet.


 So far so good, compiles and runs, and produces sound.  Will try a short
 flight and see if any problems crop up.


 Seems to be working ok, a bit, umm, stuttery, sort of, particularly
 background wind, seemed to switch left-right a bit, but those
 problems might just be me, maybe even just an illusion.


With an update this morning from cvs, I still only hear ATC and that
with frequency distortion.  Did I miss a required library change?  I
have openal-0.0.9-0.15.20060204cvs.fc9.i386 and
freealut-1.1.0-6.fc9.i386 with fc10.




--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel




-- 
Be Kind. 
Remember, everyone is fighting a hard battle.

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-19 Thread Nicolas Quijano
In Debug :
Still crashing on rumble.wav, still on SGSoundSample::free data : delete
_data.release() is the culprit, albeit no problems in generating the al
buffer for rumble.wav, etc.
That's when the sample does the test if it's a file or not, and then deletes
it in SGSoundManager::requestBuffer.

Before the crash :
Btw, the ATCMgr is initialized before the sound manager, and the ATCVoice is
trying to do its thing with _working obviously set to false. Not sure that's
the case in release, as ATIS is managed by this, right, and couldn't get it
to shut up as I mentioned previously (changing frequencies didn't do
anything, it would keep giving me the audio loop)

It's also trying to resume the sound manager later on during init (in
setFreeze (false), still before the latter is initialized.
this sets _active to true, before the sound manager has been initialized (it
exists, obviously, but init has not been called yet)

Hope this helps,
Nic



On Mon, Oct 19, 2009 at 12:27 PM, Alan Teeder ajtee...@v-twin.org.ukwrote:

  Did another CVS update after reading this post and get same result as
 Nicolas



 Alan




-- 
Be Kind.
Remember, everyone is fighting a hard battle.
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-19 Thread dave perry
dave perry wrote:

 With an update this morning from cvs, I still only hear ATC and that 
 with frequency distortion.  Did I miss a required library change?  I 
 have openal-0.0.9-0.15.20060204cvs.fc9.i386 and 
 freealut-1.1.0-6.fc9.i386 with fc10.


   
The above is on my desktop (Athlon XP 3200+, current FC10, AC'97 Chip 
ALC650.

I also have a notebook with an Intel core2 duo running FC10 64 bit.  On 
this system I get all the AC sounds but still distorted ATC.  I am using 
the following update script on both systems.

echo This script will update source from cvs and then compile and install
echo (1) the SimGear library,
echo (2) FlightGear source files, and
echo (3) finally just update the FlightGear/data folder.
echo 
echo Updating the SimGear library source 
cd ~
cd source-osg/SimGear
cvs up -dP
sh autogen.sh
./configure CFLAGS=-march=native CXXFLAGS=-march=native 
--with-jpeg-factory
echo  
echo Compiling SimGear **
make
echo  
echo Installing the SimGear library *
sudo make install
echo  
echo Updating FlightGear source *
cd ../source-fgfs
cvs up -dP
sh autogen.sh
./configure CFLAGS=-march=native CXXFLAGS=-march=native 
--prefix=$FG_ROOT
echo  
echo Compiling FlightGear ***
make
echo  
echo Installing FilghtGear executables **
sudo make install
echo  
echo Updating the Base package data *
cd $FG_ROOT
cvs up -dP
echo 
cd ~
echo Update COMPLETE!

Regards,
Dave P.

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-18 Thread Erik Hofman
Durk Talsma wrote:
 Hi,
 
 On Saturday 17 October 2009 11:06:33 pm syd adams wrote:
 After an update and compile this morning , I hear atc-chatter , but nothing
 else.
 With the s76c , I hear sounds until I start the engine , then sounds cut
 out.

Is the engine still running after that (can you still take off)?

 I also hear a pop when I mute / unmute sound , or pause / unpause the sim.
 This probably doesn't help much ... still trying to figure out how to use
 
 When I start the CitationX, I hear the engine and other sounds.  For several 
 other aircraft, including the Cessna 172,and the  Lockheed1049h, I don't hear 
 anything. I also get the pops when starting and closing flightgear.

I suspect there still is a positioning or orientation problem hiding 
somewhere that's causing it. My speed lessons in quaternations don't pay 
out just yet I guess.

Erik

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-18 Thread Erik Hofman
daveluff wrote:
 I'm also unable to run FG with the new sound system, this time on 
 Windows built with msvc 2005 express.  In my case, dt to update_late is 
 definitely non-zero though.  Here's the stack trace:

Thanks David, I think I've nailed this down now.
It not, could you specify any command line options?

Erik

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-18 Thread James Sleeman
I still appear to have the same problem... compiled a couple of minutes 
ago, fgfs with no command line options, backtrace follows...



^C
Program received signal SIGINT, Interrupt.
[Switching to Thread 0x7fc28f3f3790 (LWP 7693)]
0x7fc28f104a94 in __lll_lock_wait () from /lib/libpthread.so.0
(gdb) bt
#0  0x7fc28f104a94 in __lll_lock_wait () from /lib/libpthread.so.0
#1  0x7fc28f1001ab in _L_lock_312 () from /lib/libpthread.so.0
#2  0x7fc28f0ffbb1 in pthread_mutex_lock () from /lib/libpthread.so.0
#3  0x7fc28cd27bb0 in ?? () from /usr/lib/libopenal.so.1
#4  0x7fc28cd27e1d in alcGetCurrentContext () from 
/usr/lib/libopenal.so.1

#5  0x7fc28cd1e99b in alGenBuffers () from /usr/lib/libopenal.so.1
#6  0x0098d4c4 in SGSoundMgr::request_buffer (this=0x318a560,
   sample=0xad04960) at 
../../../SimGear/simgear/sound/soundmgr_openal.cxx:430

#7  0x00989b2c in SGSampleGroup::update (this=0x318af70,
   dt=5.8003894957507154e-315)
   at ../../../SimGear/simgear/sound/sample_group.cxx:125
#8  0x0098dbbf in SGSoundMgr::update_late (this=0x318a560,
   dt=0.0083332)
   at ../../../SimGear/simgear/sound/soundmgr_openal.cxx:232
#9  0x0042a4a9 in fgMainLoop ()
   at ../../../FlightGear/src/Main/main.cxx:486
#10 0x0047fe22 in fgOSMainLoop ()
   at ../../../FlightGear/src/Main/fg_os_osgviewer.cxx:172
#11 0x0042b0bf in fgMainInit (argc=1, argv=0x7fff97532e68)
   at ../../../FlightGear/src/Main/main.cxx:900
#12 0x004291f9 in main (argc=1, argv=0x7fff97532e68)
   at ../../../FlightGear/src/Main/bootstrap.cxx:228


On 18/10/09 22:35, Erik Hofman wrote:

daveluff wrote:
  
I'm also unable to run FG with the new sound system, this time on 
Windows built with msvc 2005 express.  In my case, dt to update_late is 
definitely non-zero though.  Here's the stack trace:



Thanks David, I think I've nailed this down now.
It not, could you specify any command line options?

Erik

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!

http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel
  


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-18 Thread Erik Hofman
James Sleeman wrote:
 I still appear to have the same problem... compiled a couple of minutes 
 ago, fgfs with no command line options, backtrace follows...

 ../../../SimGear/simgear/sound/soundmgr_openal.cxx:430
 #7  0x00989b2c in SGSampleGroup::update (this=0x318af70,
 dt=5.8003894957507154e-315)

Hm, dt is still really slim, I need to think this over more. It'll 
probably end up by telling the SoundManager when to start processing 
updates explicitly.

Erik

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-18 Thread Erik Hofman
Vivian Meazza wrote:
 Patched soundmgr_openal.cxx/hxx and sample_group.hxx with 
 
 +#elif defined(_WIN32)
 +# include al.h
 
 or
 
 +#elif defined(_WIN32)
 +# include al.h
 +# include alc.h
 +# include AL/alut.h

Olaf pointed out to me that this wasn't necessary for more than 5 yearss 
and indeed AL/* is the recommended place for the header files by 
specification. So I'll revert this to section to the way it was before.

Erik

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-18 Thread Erik Hofman
James Sleeman wrote:
 I still appear to have the same problem... compiled a couple of minutes 
 ago, fgfs with no command line options, backtrace follows...

I think I've found the problem which might or might not be a bug in the 
OpenAL implementation. It is recommended to place all updates to the 
OpenAL state withing alcSuspendContext() and alcResumeContext() to allow 
multiple state changes to be sent to hardware in one go (which is faster 
and make sure the source and listeners get updated in one go).

The specification is not clear whether is is possible to call 
alGenBuffers when the context is suspended. I would say it *is* allowed 
and the Sample implementation does allow for it.

Anyhow, I've decided not to call alcSuspendContext anymore which should 
fix this issue.

Erik

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-18 Thread James Sleeman
On 19/10/09 02:48, Erik Hofman wrote:
 I think I've found the problem which might or might not be a bug in the
 OpenAL implementation. It is recommended to place all updates to the 
   

Maybe not, still locking up, I note there is an AL Error (atc): in the 
output there now which wasn't before (I think)...


bof...@mortimer:/tmp$ gdb fgfs
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type show copying
and show warranty for details.
This GDB was configured as x86_64-linux-gnu...
(gdb) run
Starting program: /usr/local/bin/fgfs
[Thread debugging using libthread_db enabled]
[New Thread 0x7fc4f387f790 (LWP 14296)]
[New Thread 0x7fc4eae94950 (LWP 14299)]
AL Error (atc): [New Thread 0x7fc4e593c950 (LWP 14300)]
[New Thread 0x7fc4e513b950 (LWP 14302)]
[New Thread 0x7fc4e493a950 (LWP 14303)]
[New Thread 0x7fc4d950 (LWP 14304)]
creating 3D noise texture... DONE
^C
Program received signal SIGINT, Interrupt.
[Switching to Thread 0x7fc4f387f790 (LWP 14296)]
0x7fc4f3590a94 in __lll_lock_wait () from /lib/libpthread.so.0
(gdb) bt
#0  0x7fc4f3590a94 in __lll_lock_wait () from /lib/libpthread.so.0
#1  0x7fc4f358c1ab in _L_lock_312 () from /lib/libpthread.so.0
#2  0x7fc4f358bbb1 in pthread_mutex_lock () from /lib/libpthread.so.0
#3  0x7fc4f11b3bb0 in ?? () from /usr/lib/libopenal.so.1
#4  0x7fc4f11b3e1d in alcGetCurrentContext () from 
/usr/lib/libopenal.so.1
#5  0x7fc4f11abd83 in alGetError () from /usr/lib/libopenal.so.1
#6  0x00989028 in SGSampleGroup::testForALError 
(this=0x7fc4f13c9d80, s...@0x80) at 
../../../SimGear/simgear/sound/sample_group.cxx:416
#7  0x00989985 in SGSampleGroup::update (this=0xf3a97d0, 
dt=value optimized out) at 
../../../SimGear/simgear/sound/sample_group.cxx:179
#8  0x0098daff in SGSoundMgr::update_late (this=0x2f26f20, dt=0) 
at ../../../SimGear/simgear/sound/soundmgr_openal.cxx:243
#9  0x0042a349 in fgMainLoop () at 
../../../FlightGear/src/Main/main.cxx:486
#10 0x0047fd72 in fgOSMainLoop () at 
../../../FlightGear/src/Main/fg_os_osgviewer.cxx:172
#11 0x0042af5f in fgMainInit (argc=1, argv=0x7b9bf2f8) at 
../../../FlightGear/src/Main/main.cxx:902
#12 0x00429149 in main (argc=1, argv=0x7b9bf2f8) at 
../../../FlightGear/src/Main/bootstrap.cxx:228


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-18 Thread Geoff McLane
On Sun, 2009-10-18 at 15:07 +0200, Erik Hofman wrote:
 Vivian Meazza wrote:
  Patched soundmgr_openal.cxx/hxx and sample_group.hxx with 
  
  +#elif defined(_WIN32)
  +# include al.h
  
  or
  
  +#elif defined(_WIN32)
  +# include al.h
  +# include alc.h
  +# include AL/alut.h
 
 Olaf pointed out to me that this wasn't necessary for more than 5 yearss 
 and indeed AL/* is the recommended place for the header files by 
 specification. So I'll revert this to section to the way it was before.
 
 Erik
 

Ok, that will break it for Vivian, myself and OTHERS
who use the Creative Labs OpenAL 1.1 SDK, which
DOES NOT put 'al.h' and 'alc.h' in an 'AL' 
sub-directory.

They are simply in :-
C:\Program Files\OpenAL 1.1 SDK\include
by default... check it out...

So whose 'recommended' ... 'specification' are we
talking about?

At least change the #elif defined(_WIN32) to say
#elif defined(USE_OPENAL_SDK), then we can ALL
be happy ;=))

I always thought using the generic _WIN32 would be
a no go for those using older/other versions of
OpenAL that do use an 'AL' sub-directory...

And can this 'include' block not be just in ONE
header, like say sample_group.hxx, and then
soundmgr_openal.cxx/hxx, etc can include that
header...

Regards,

Geoff.



--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-18 Thread Vivian Meazza
Geoff McLane

 
 On Sun, 2009-10-18 at 15:07 +0200, Erik Hofman wrote:
  Vivian Meazza wrote:
   Patched soundmgr_openal.cxx/hxx and sample_group.hxx with
  
   +#elif defined(_WIN32)
   +# include al.h
  
   or
  
   +#elif defined(_WIN32)
   +# include al.h
   +# include alc.h
   +# include AL/alut.h
 
  Olaf pointed out to me that this wasn't necessary for more than 5 yearss
  and indeed AL/* is the recommended place for the header files by
  specification. So I'll revert this to section to the way it was before.
 
  Erik
 
 
 Ok, that will break it for Vivian, myself and OTHERS
 who use the Creative Labs OpenAL 1.1 SDK, which
 DOES NOT put 'al.h' and 'alc.h' in an 'AL'
 sub-directory.
 
 They are simply in :-
 C:\Program Files\OpenAL 1.1 SDK\include
 by default... check it out...
 
 So whose 'recommended' ... 'specification' are we
 talking about?
 
 At least change the #elif defined(_WIN32) to say
 #elif defined(USE_OPENAL_SDK), then we can ALL
 be happy ;=))
 
 I always thought using the generic _WIN32 would be
 a no go for those using older/other versions of
 OpenAL that do use an 'AL' sub-directory...
 
 And can this 'include' block not be just in ONE
 header, like say sample_group.hxx, and then
 soundmgr_openal.cxx/hxx, etc can include that
 header...
 

Quite correct, Geoff, but why would anyone be using anything other than the
latest build from Creative Labs? Surely we need to make it all build with
OpenAL 1.1 SDK? I've given up on this saga. Sound continues to cause a crash
on exit here. We are just chasing our tails. When someone sorts it all out,
I will _try_ to make it compile under MSVC9.

Where is Fred when we REALLY need him?

Vivian



--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New Sound system committed

2009-10-18 Thread Geoff McLane
Hi Vivian,

 using anything other than the
 latest build from Creative Labs?

Well they could for example be using the openal-soft
 http://sourceforge.net/projects/openal-soft/
which suggests it is version 1.2.??? And has a CVS
download, and uses the 'AL' sub-directory!

But it seems the last commit there is shown as 2007-12-20
so while perhaps not newer, is also not really older. 
The Creative 1.1 SDK is of around the same era...

So I would certainly opt for using USE_OPENAL_SDK
switch rather than _WIN32... making us all HAPPY ;=))

 cause a crash on exit here

Have not been particularly following ALL the posts on
this, but with MSVC9's debugger you should be able to
'see' _EXACTLY_ where/when this happens...

Quite frequently, in Debug mainly, but can happen also
in 'random' memory in Release, it is due to things like -
   if ( _data )
  delete _data;  // a crash exit
since, in Debug especially, such a variable is likely filled
with a debug value, by the MSVC compiler, deliberately, and
has has never been initialized to NULL in the code...

This is very common... It seems GCC quite frequently ensures
such 'memory', 'variables' etc are all zeros...

Unfortunately just have not had the time to do a
full SG/FG/et al cvs/svn update, and build it myself at the
moment... too many other things to play with ;=)) but
hope to get around to it shortly...

Regards,

Geoff.



--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


  1   2   >