Re: [Flightgear-devel] SoundSystem on MacOS

2010-01-24 Thread James Turner

On 21 Jan 2010, at 07:59, Erik Hofman wrote:

>> Fly-by views are *not* okay for me, but I must point out (before Erik gets 
>> annoyed) that I am running a few days behind CVS due to hacking on other 
>> areas of the code. I'll pull now and report back.
> 
> You're trying to get me a heart attack, don't you? :-)

To (hopefully) finally make Erik sleep easy at night - with current CVS code, 
fly-by view doppler is working great - thanks for all your work Erik!

Regards,
James


--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] SoundSystem on MacOS

2010-01-21 Thread Erik Hofman
James Turner wrote:
> On 20 Jan 2010, at 14:28, James Turner wrote:
> 
>> This is especially the case when I switch the tower location from my 
>> departure airport to my arrival airport. I *think* fly-by views are okay, 
>> but I'll double-check that now.
> 
> Fly-by views are *not* okay for me, but I must point out (before Erik gets 
> annoyed) that I am running a few days behind CVS due to hacking on other 
> areas of the code. I'll pull now and report back.

You're trying to get me a heart attack, don't you? :-)

Erik

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] SoundSystem on MacOS

2010-01-20 Thread Erik Hofman
Jari Häkkinen wrote:
> With the latest repository version of fg and support the sound works for 
> me on 64bit iMac. Previously I had problems with fly-by view sound but 
> now the doppler effect in fly-by view now sounds reasonable. Nice work Erik.

Great!

Erik

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] SoundSystem on MacOS

2010-01-20 Thread James Turner

On 20 Jan 2010, at 14:28, James Turner wrote:

> This is especially the case when I switch the tower location from my 
> departure airport to my arrival airport. I *think* fly-by views are okay, but 
> I'll double-check that now.

Fly-by views are *not* okay for me, but I must point out (before Erik gets 
annoyed) that I am running a few days behind CVS due to hacking on other areas 
of the code. I'll pull now and report back.

Also, Erik, I'd like to apologise on behalf of my useless mothership (Apple) 
for the dreadful state of OpenAL on OS-X. Fixing bugs on other people's 
platforms is pretty horrible.

James




--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] SoundSystem on MacOS

2010-01-20 Thread Jari Häkkinen
With the latest repository version of fg and support the sound works for 
me on 64bit iMac. Previously I had problems with fly-by view sound but 
now the doppler effect in fly-by view now sounds reasonable. Nice work Erik.


Jari



On 1/20/10 3:02 PM, Erik Hofman wrote:
> Erik Hofman wrote:
>> I have read a report an bad doppler for MacOS then asked for some
>> information but got no reply.
>> If this problem still persists could the MacOS users try this patch?
>
> Never mind this patch contains an error so I've put it in CVS. If it's
> wrong please tell me and I'll remove it again.
>
> Erik
>
> --
> Throughout its 18-year history, RSA Conference consistently attracts the
> world's best and brightest in the field, creating opportunities for Conference
> attendees to learn about information security's most important issues through
> interactions with peers, luminaries and emerging and established companies.
> http://p.sf.net/sfu/rsaconf-dev2dev
> ___
> Flightgear-devel mailing list
> Flightgear-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/flightgear-devel

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] SoundSystem on MacOS

2010-01-20 Thread James Turner

On 20 Jan 2010, at 14:19, Peter Brown wrote:

> The sound on the MacOS does still have a glitch when changing views. If you 
> have a good patch to try I'd be more than happy to test it.  
> If you recall, its most typical in fly by or tower view, and if you adjust 
> your viewpoint in any direction the sound is corrected. 
> It will never happen in cockpit view, and rarely in chase or helicopter 
> views, but is regular in the rest. 

That's consistent with what I see on OS-X 10.6.2 as well - sound 'seems' fine 
(maybe it's not 100% correct, but everything seems fine), except that in tower 
view especially, the sound (doppler) is wrong, as if a very large doppler term 
is being applied.

This is especially the case when I switch the tower location from my departure 
airport to my arrival airport. I *think* fly-by views are okay, but I'll 
double-check that now.

Regards,
James



--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] SoundSystem on MacOS

2010-01-20 Thread Erik Hofman
Peter Brown wrote:
> Erik,
> The sound on the MacOS does still have a glitch when changing views. If you 
> have a good patch to try I'd be more than happy to test it.  
> If you recall, its most typical in fly by or tower view, and if you adjust 
> your viewpoint in any direction the sound is corrected. 
> It will never happen in cockpit view, and rarely in chase or helicopter 
> views, but is regular in the rest. 

You could still try the posted patch but it uses 'vendor' instead of 
'_vendor', but if you use CVS just update to the latest version and it 
will get you the proper patch.

Erik

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] SoundSystem on MacOS

2010-01-20 Thread Peter Brown
Erik,
The sound on the MacOS does still have a glitch when changing views. If you 
have a good patch to try I'd be more than happy to test it.  
If you recall, its most typical in fly by or tower view, and if you adjust your 
viewpoint in any direction the sound is corrected. 
It will never happen in cockpit view, and rarely in chase or helicopter views, 
but is regular in the rest. 
Peter

--Original Message--
From: Erik Hofman
To: FlightGear developers discussions
ReplyTo: FlightGear developers discussions
Subject: Re: [Flightgear-devel] SoundSystem on MacOS
Sent: Jan 20, 2010 9:02 AM

Erik Hofman wrote:
> I have read a report an bad doppler for MacOS then asked for some 
> information but got no reply.
> If this problem still persists could the MacOS users try this patch?

Never mind this patch contains an error so I've put it in CVS. If it's 
wrong please tell me and I'll remove it again.

Erik

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Sent from Smooth Water Sports, your Malibu Boat Dealer
--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] SoundSystem on MacOS

2010-01-20 Thread Erik Hofman
Erik Hofman wrote:
> I have read a report an bad doppler for MacOS then asked for some 
> information but got no reply.
> If this problem still persists could the MacOS users try this patch?

Never mind this patch contains an error so I've put it in CVS. If it's 
wrong please tell me and I'll remove it again.

Erik

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] SoundSystem on MacOS

2010-01-20 Thread Erik Hofman


Hi,

I have read a report an bad doppler for MacOS then asked for some 
information but got no reply.

If this problem still persists could the MacOS users try this patch?

Erik
Index: soundmgr_openal.cxx
===
RCS file: /var/cvs/SimGear-0.3/source/simgear/sound/soundmgr_openal.cxx,v
retrieving revision 1.88
diff -p -u -r1.88 soundmgr_openal.cxx
--- soundmgr_openal.cxx	13 Jan 2010 14:29:59 -	1.88
+++ soundmgr_openal.cxx	20 Jan 2010 13:45:05 -
@@ -111,6 +111,7 @@ void SGSoundMgr::init(const char *devnam
 }
 
 ALCcontext *context = alcCreateContext(device, NULL);
+testForALCError("context creation.");
 if ( testForError(context, "Unable to create a valid context.") ) {
 alcCloseDevice (device);
 return;
@@ -125,6 +126,7 @@ void SGSoundMgr::init(const char *devnam
 
 if (_context != NULL)
 SG_LOG(SG_GENERAL, SG_ALERT, "context is already assigned");
+_device = device;
 _context = context;
 _working = true;
 
@@ -162,7 +164,7 @@ void SGSoundMgr::init(const char *devnam
 
 _vendor = (const char *)alGetString(AL_VENDOR);
 _renderer = (const char *)alGetString(AL_RENDERER);
-if ( _vendor != "OpenAL Community" ||
+if ( (_vendor != "OpenAL Community" && vendor != "Apple Computer Inc.") ||
 (_renderer != "Software" && _renderer != "OpenAL Sample Implementation")
)
 {
--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel