Re: [Flightgear-devel] FlightGear Sound System redux

2009-10-04 Thread Erik Hofman
Erik Hofman wrote: > Most of the work to transition to the new sound system has been done now > and the patch size starts toe exceed the comfort level for most so I'm > going to commit the current result somewhere today. I'm going to take this back, I discovered a problem that needs more inve

Re: [Flightgear-devel] FlightGear Sound System redux

2009-10-03 Thread Erik Hofman
Most of the work to transition to the new sound system has been done now and the patch size starts toe exceed the comfort level for most so I'm going to commit the current result somewhere today. The code is not completely finished yet but it will allow others to look at it and add small updat

Re: [Flightgear-devel] FlightGear Sound System redux

2009-09-26 Thread Erik Hofman
Matias D'Ambrosio wrote: > This is almost certainly a bug in fgfs or PulseAudio. Yeah, no use in hunting this down until I've got the new sound system ready. Erik -- Come build with us! The BlackBerry® Developer Confer

Re: [Flightgear-devel] FlightGear Sound System redux

2009-09-26 Thread Matias D'Ambrosio
On Sat, Sep 26, 2009 at 11:29 AM, Olaf Flebbe wrote: > Hi Erik, > > >> Did you know that the sound system eats up to 30% of CPU time, > depending > >> on hardware? This even with --disable-sound on the command line. > > > > That's OpenAL version specific. Mine is twice as fast with 256 voices

Re: [Flightgear-devel] FlightGear Sound System redux

2009-09-26 Thread Olaf Flebbe
Hi Erik, >> Did you know that the sound system eats up to 30% of CPU time, depending >> on hardware? This even with --disable-sound on the command line. > > That's OpenAL version specific. Mine is twice as fast with 256 voices > but 3.5 times more efficient with less than 32 voices. Ooops,

Re: [Flightgear-devel] FlightGear Sound System redux

2009-09-25 Thread Erik Hofman
Matias D'Ambrosio wrote: > On linux there are two implementations, the old one (OpenAL Sample > Implementation, last version was 0.0.8), which had several issues > (including broken Doppler), and the new OpenAL-Soft which most desktop > distros are now carrying. > Around 1.4 or 1.5 there wer

Re: [Flightgear-devel] FlightGear Sound System redux

2009-09-25 Thread Matias D'Ambrosio
On Fri, Sep 25, 2009 at 3:58 AM, Erik Hofman wrote: > > Olaf Flebbe wrote: > > Erik, > > > > I would like to see an option to disable sound at all. > > The changes should make that easy. Actually it was the reason I started > changing some code and decided it could use a real update in the end. >

Re: [Flightgear-devel] FlightGear Sound System redux

2009-09-25 Thread Erik Hofman
Olaf Flebbe wrote: > Erik, > > I would like to see an option to disable sound at all. The changes should make that easy. Actually it was the reason I started changing some code and decided it could use a real update in the end. > Did you know that the sound system eats up to 30% of CPU time, d

Re: [Flightgear-devel] FlightGear Sound System redux

2009-09-24 Thread Olaf Flebbe
Hi, > > Which version of OpenAL? There were recently (over a month ago?) some > improvements in that respect, still, OpenAL shouldn't be using any > processing at all. I'm at work and leaving in a few minutes, so I'll > check once I get home. > The version from ubuntu jaunty is 1.4.272 Olaf

Re: [Flightgear-devel] FlightGear Sound System redux

2009-09-24 Thread Matias D'Ambrosio
On Thu, Sep 24, 2009 at 5:38 PM, Olaf Flebbe wrote: > Erik, > > I would like to see an option to disable sound at all. > > Did you know that the sound system eats up to 30% of CPU time, depending > on hardware? This even with --disable-sound on the command line. > > I found it while profiling fgf

Re: [Flightgear-devel] FlightGear Sound System redux

2009-09-24 Thread Olaf Flebbe
Erik, I would like to see an option to disable sound at all. Did you know that the sound system eats up to 30% of CPU time, depending on hardware? This even with --disable-sound on the command line. I found it while profiling fgfs on my eeepc with ubuntu, which is largely affected because of i

Re: [Flightgear-devel] FlightGear Sound System redux

2009-09-22 Thread Pete Morgan
Maybe a bit of a tangent question about the sound but.. The scenario in mind for xmas is a couple of new proper PC's (multiscreen) set up with FG, so two kids in different parts of the house are concerting. In the meantime there can be some ATC presence from some laptop in the garden shed as it

Re: [Flightgear-devel] FlightGear Sound System redux

2009-09-22 Thread syd adams
I'd prefer not to hear cockpit sounds from exterior views myself , so it would be nice if there was a way to enable/disable them . Would be nice too, if engine volumes would really go to 0 from exterior views . Cheers -- C

Re: [Flightgear-devel] FlightGear Sound System redux

2009-09-22 Thread Heiko Schulz
Hi, > > I would like to hear all the cockpit sounds in > exterior views because I > > > am still sitting "in" the cockpit.  My > rudder pedals are under my feet, > > > my throttle quadrant is at my knee, and the stick is > in my hand.  I am > > > still flying the aircraft so it is important to

Re: [Flightgear-devel] FlightGear Sound System redux

2009-09-22 Thread Curtis Olson
On Tue, Sep 22, 2009 at 10:24 AM, John Denker wrote: > On 09/22/09 08:03, Ron Jensen wrote: > > > I would like to hear all the cockpit sounds in exterior views because I > > am still sitting "in" the cockpit. My rudder pedals are under my feet, > > my throttle quadrant is at my knee, and the stic

Re: [Flightgear-devel] FlightGear Sound System redux

2009-09-22 Thread John Denker
On 09/22/09 08:03, Ron Jensen wrote: > I would like to hear all the cockpit sounds in exterior views because I > am still sitting "in" the cockpit. My rudder pedals are under my feet, > my throttle quadrant is at my knee, and the stick is in my hand. I am > still flying the aircraft so it is imp

Re: [Flightgear-devel] FlightGear Sound System redux

2009-09-22 Thread Ron Jensen
On Tue, 2009-09-22 at 20:28 +1200, James Sleeman wrote: > On 22/09/09 20:22, Erik Hofman wrote: > > While reworking the sound system I started to wonder about the ATC > > chatter and such (like beacons and morse code). > > > > Should these be tied to the main aircraft (and hence fade away when the

Re: [Flightgear-devel] FlightGear Sound System redux

2009-09-22 Thread Erik Hofman
Good idea's John, I'll try to think about it when going further. It might need adjustment after the first commit but I'll try to make it easy. Erik -- Come build with us! The BlackBerry® Developer Conference in SF, CA i

Re: [Flightgear-devel] FlightGear Sound System redux

2009-09-22 Thread John Denker
James Turner wrote: >> I suspect this should be a pref - either the local cockpit sounds are >> associated with the aircraft model (realistic operation) or they are >> associated with the view position (unrealistic but useful if you like >> switching to an outside view but don't want to miss

Re: [Flightgear-devel] FlightGear Sound System redux

2009-09-22 Thread James Turner
On 22 Sep 2009, at 10:10, Erik Hofman wrote: > Why was I already suspecting it would end up like this? :) Well, putting on my Apple user-interface hat, adding a pref is always a thing to be cautious about - much better to make the software smart (since the user is dumb!) and do the 'right th

Re: [Flightgear-devel] FlightGear Sound System redux

2009-09-22 Thread Erik Hofman
James Turner wrote: > I suspect this should be a pref - either the local cockpit sounds are > associated with the aircraft model (realistic operation) or they are > associated with the view position (unrealistic but useful if you like > switching to an outside view but don't want to miss a b

Re: [Flightgear-devel] FlightGear Sound System redux

2009-09-22 Thread James Turner
On 22 Sep 2009, at 09:28, James Sleeman wrote: >> While reworking the sound system I started to wonder about the ATC >> chatter and such (like beacons and morse code). >> >> Should these be tied to the main aircraft (and hence fade away when >> the >> aircraft gets further away) or should these

Re: [Flightgear-devel] FlightGear Sound System redux

2009-09-22 Thread James Sleeman
On 22/09/09 20:22, Erik Hofman wrote: > While reworking the sound system I started to wonder about the ATC > chatter and such (like beacons and morse code). > > Should these be tied to the main aircraft (and hence fade away when the > aircraft gets further away) or should these be audible no matt

Re: [Flightgear-devel] FlightGear Sound System redux

2009-09-22 Thread Erik Hofman
While reworking the sound system I started to wonder about the ATC chatter and such (like beacons and morse code). Should these be tied to the main aircraft (and hence fade away when the aircraft gets further away) or should these be audible no matter what? Erik --

Re: [Flightgear-devel] FlightGear Sound System redux

2009-09-20 Thread James Turner
On 20 Sep 2009, at 10:23, Erik Hofman wrote: > True, and I expect it's also the reason why doppler didn't work > correctly (besides that the listener velocity wasn't updated while > OpenAL needs both the listener velocity and the source velocity for > proper calculation of the doppler effect). >

Re: [Flightgear-devel] FlightGear Sound System redux

2009-09-20 Thread Matias D'Ambrosio
On Sun, Sep 20, 2009 at 6:23 AM, Erik Hofman wrote: > > > > One other I've remember from looking at the code - for some reason we > > always positioned the listener at (0,0,0), and do a lot of work to > > transform world positions into a listener-relative basis. As I > > understand it, OpenAL can

Re: [Flightgear-devel] FlightGear Sound System redux

2009-09-20 Thread Erik Hofman
James Turner wrote: > On 20 Sep 2009, at 09:25, Erik Hofman wrote: > >> I might need some help to understand quads, but I am converting it to >> SGVec3f where ever possible. > > No problem, I'm sure Mathias / Tim / myself can oblige. Thanks! > One other I've remember from looking at the code

Re: [Flightgear-devel] FlightGear Sound System redux

2009-09-20 Thread James Turner
On 20 Sep 2009, at 09:25, Erik Hofman wrote: > I might need some help to understand quads, but I am converting it to > SGVec3f where ever possible. No problem, I'm sure Mathias / Tim / myself can oblige. One other I've remember from looking at the code - for some reason we always positioned t

Re: [Flightgear-devel] FlightGear Sound System redux

2009-09-20 Thread Erik Hofman
James Turner wrote: > Let me know if I can help at all. One thing I thing I would strongly > suggest on the FG side, would be to ensure the SG side uses Mathias' > excellent basic types (SGVec3d/f, SGQuatd, etc) to express positions, > vectors and orientations to the code. The SG layer itsel

Re: [Flightgear-devel] FlightGear Sound System redux

2009-09-20 Thread James Turner
On 20 Sep 2009, at 08:18, Erik Hofman wrote: > Both will be adressed. The problem Tom describes has something to do > with improper doppler effect and a nasty way to fix it. I Think I've > found why doppler didn't work properly in the first place. That's fantastic news! Let me know if I can hel

Re: [Flightgear-devel] FlightGear Sound System redux

2009-09-20 Thread Erik Hofman
Hi Durk, Durk Talsma wrote: > That sounds pretty awesome. (Sorry for the lame pun). :-) :) > Seriously, though, since you mention that this is something you're working on > for the longer term, do you think this planned update should be included in > the new release (planned beta release around

Re: [Flightgear-devel] FlightGear Sound System redux

2009-09-20 Thread Erik Hofman
Hi John, John Denker wrote: > That's a good thing to work on. Thanks for the heads-up. > > Here's one more thing to think about in this context: > text to speech. AFAICT the status is: > 1) The existing home-brew TTS system (involving > ATC/default.vce and ATC/default.wav) is very limited.

Re: [Flightgear-devel] FlightGear Sound System redux

2009-09-20 Thread Erik Hofman
James Turner wrote: > Excellent news. My biggest two requests would be to get the sound code > out of main.cxx, and proper support for positional sources - i.e AI or > MP traffic. Being able to position sounds on the airframe would be > good too - engine and gear noises especialy. Tom P wr

Re: [Flightgear-devel] FlightGear Sound System redux

2009-09-19 Thread Durk Talsma
Hi Erik, On Saturday 19 September 2009 03:13:21 pm Erik Hofman wrote: > Hi, > > This is a heads up that I'm working on improving the sound system quite > a bit with a few new concepts in mind. That sounds pretty awesome. (Sorry for the lame pun). :-) Seriously, though, since you mention that th

Re: [Flightgear-devel] FlightGear Sound System redux

2009-09-19 Thread Anders Gidenstam
On Sat, 19 Sep 2009, John Denker wrote: > 2) There is a documented interface to the Festival > TTS system. Alas, the preponderance of the evidence > indicates this has not worked in several years. > AFAICT all reports of working TTS refer to the > home-brew system (item 1 above). Using Festi

Re: [Flightgear-devel] FlightGear Sound System redux

2009-09-19 Thread John Denker
On 09/19/09 06:13, Erik Hofman wrote: > This is a heads up that I'm working on improving the sound system quite > a bit with a few new concepts in mind. That's a good thing to work on. Thanks for the heads-up. Here's one more thing to think about in this context: text to speech. AFAICT the s

Re: [Flightgear-devel] FlightGear Sound System redux

2009-09-19 Thread Tom P
Hi Erik One issue I've noticed with the current system is that all sounds are played on the same channel. Let me give an example: On the Beechcraft B1900D, sound inside the cabin is engine noise + warning messages (1000 ft, 500 ft, excessive banking, etc..). When switching to an external view li

Re: [Flightgear-devel] FlightGear Sound System redux

2009-09-19 Thread James Turner
Excellent news. My biggest two requests would be to get the sound code out of main.cxx, and proper support for positional sources - i.e AI or MP traffic. Being able to position sounds on the airframe would be good too - engine and gear noises especialy. Let me know if I can help at all. Also