Board index FlightGear Development AI Traffic

Ability to hear other planes.

Intelligent, computer controlled vehicles that drive/fly over the planet!

Ability to hear other planes.

Postby Student_Pilot_Noob » Sat Sep 05, 2009 1:23 am

Wouldn't be neat if you're flying next to a helicopter or jet and be able to actually hear the noise of their engines? Does the audio system allow for more than one sound at the same time?
Student_Pilot_Noob
 
Posts: 82
Joined: Wed Aug 26, 2009 2:35 am

Re: Ability to hear other planes.

Postby erik » Sat Sep 05, 2009 8:58 am

Off course, you'll hear multiple sounds all the time (engine sound, propeller wash, wind noise) but what you actually want is hearing sounds from AI or mulitplayer aircraft. To be honnest, I have no idea if that is implemented correctly at this time.

Erik
Current: Parachutist, Paraglider, Pterosaur, Pilatus PC-9M and variants, ERCO Ercoupe, Fokker Dr.1, Fokker 50, Fokker 100
Less active: Cessna T-37, T-38, Santa Claus. Previous: General Dynamics F-16. Worked on: Wright Flyer
erik
 
Posts: 2248
Joined: Thu Nov 01, 2007 2:41 pm

Re: Ability to hear other planes.

Postby AndersG » Sat Sep 05, 2009 11:17 am

erik wrote:Off course, you'll hear multiple sounds all the time (engine sound, propeller wash, wind noise) but what you actually want is hearing sounds from AI or mulitplayer aircraft. To be honnest, I have no idea if that is implemented correctly at this time.


As far as I know it (AI sounds) is not implemented at all at this time. I suppose it could be done similar to how the animations of AI models are done, that is reading in the main model's sound configuration and drive it from the AI/MP subtree - some of the more important properties are already sent over MP.

OTOH from what I've seen here it is not that uncommon for some sound drivers to run into problems if too many sounds are played at the same time (typically you see posts about sound errors with 4 engined aircraft - some of those have several sounds per engine) and for these the problems will only become greater when nearby AI aircraft add to tne number of concurrent sounds. I'm not sure if OpenAL specifies (or let the implementor specify) an upper limit for the number of concurrent sounds supported.

Cheers,

Anders
Callsign: SE-AG
Aircraft (uhm...): Submarine Scout, Zeppelin NT, ZF Navy free balloon, Nordstern, Hindenburg, Short Empire flying-boat, ZNP-K, North Sea class, MTB T21 class, U.S.S. Monitor, MFI-9B, Type UB I submarine, Gokstad ship, Renault FT.
AndersG
 
Posts: 2527
Joined: Wed Nov 29, 2006 10:20 am
Location: Göteborg, Sweden
Callsign: SE-AG
OS: Debian GNU Linux

Re: Ability to hear other planes.

Postby erik » Sun Sep 06, 2009 1:50 pm

It is possible to quere the number of available sources by grabbing them one by one until OpenAL returns an error. at startup. But that's only part of the problem, once you know the number of supported sources it is necessary to develop a mechanism to stop particular sources if a new source is required and you've reaced the limit. So you might end up stopping sources that are the furthes away and/or the lowest in volume to free up resources for a new audio event.

Erik
Current: Parachutist, Paraglider, Pterosaur, Pilatus PC-9M and variants, ERCO Ercoupe, Fokker Dr.1, Fokker 50, Fokker 100
Less active: Cessna T-37, T-38, Santa Claus. Previous: General Dynamics F-16. Worked on: Wright Flyer
erik
 
Posts: 2248
Joined: Thu Nov 01, 2007 2:41 pm

Re: Ability to hear other planes.

Postby Haegemon » Tue Oct 27, 2009 3:59 am

Sounds should be attached to the model and volumes adjusted based on the distance between the sound emiter and the CAM (player).
Haegemon
 
Posts: 6
Joined: Tue Oct 27, 2009 3:25 am

Re: Ability to hear other planes.

Postby someguy » Tue Oct 27, 2009 6:44 pm

When we all have 50 GHz CPUs, we'll be able to model stereo Doppler shifts, and the directionality of propwash and jet exhausts... :)
User avatar
someguy
 
Posts: 1650
Joined: Tue Nov 25, 2008 6:54 am
Location: USA
Version: 2019.1.1
OS: Mac OS X 10.11.6

Re: Ability to hear other planes.

Postby Haegemon » Fri Oct 30, 2009 2:39 am

Not really, all simulators nowdays do it. It all about programming, but don't implies a CPU requisites problem.
Haegemon
 
Posts: 6
Joined: Tue Oct 27, 2009 3:25 am


Return to AI Traffic

Who is online

Users browsing this forum: No registered users and 2 guests