Hi Erik,
Erik Hofman schrieb am 27.06.2007 09:04:
> Melchior FRANZ wrote:
>
>   
>> So it's now also clear that we have to fix FlightGear's broken
>> sound ourselves for 0.9.11 (fg/plib branch). If it can be done
>> in a way that doesn't break the current framework and makes clear
>> which parts are the workaround (by using #ifdefs and comments,
>> as is the case already) then committing it is really the only option.
>>     
>
> Too bad we have to do this, but ...
> could we make it a runtime test instead (if running windows and OpenAL 
> Version < 1.2) or something like that?
>
>   
That would be the best. But how to know, that 1.2 would work? It looks 
like, if the OpenAL Doppler effect bugs are a never ending story. And 
they do not work correctly at Linux (at least not on every build). For a 
short while I thought it would be the best, to use always the own 
calculation. But then I learned, that some (all?) Linux versions of 
OpenAL report them self as version 1.1 (in the header file), but do 
limit the allowed pitch range of a sound, which is in contrary to the 
OpenAL 1.1 spec. Let see, what the AL_VERSION - query reports on this 
systems. But my calculation modify the sound by changing the pitch, and 
some aircrafts uses the full pitch range even without Doppler effects. 
But it seems, that this versions of OpenAL do correct Doppler 
calculations, if the listener velocity is fixed to 0. Therefore it would 
work, to set the source velocity to the relative velocity from source 
and listener. Physically not correct, but much better than no Doppler 
Effect. (In all cases It will be possible to switch off the own 
calculation by one #define).
> Erik

Best regards,
Maik

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to