Re: [Flightgear-devel] a question on Sound/fg_fx.cxx /sim/sound/pause processing

2005-10-14 Thread Erik Hofman

Andy Ross wrote:


Hardware mixing is, of course, the best solution, but note also that
OpenAL can be built with any of a zillion back ends, among them the
various sounds servers (esd, arts) which do their own mixing.


In fact they *all* get included and an option in ~/.openalrc can define 
which one to use:


; Contains user settings for OpenAL
; Goes in ~/.openalrc

; Which backend?  Tried in order of appearance
(define devices '(native alsa sdl esd arts null))

; Four speaker surround with ALSA
(define speaker-num 4)
(define alsa-out-device surround40:0,0)

; Some drivers do not support select
(define native-use-select ;t)


Erik

___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] a question on Sound/fg_fx.cxx /sim/sound/pause processing

2005-10-13 Thread Erik Hofman

Vassilii Khachaturov wrote:

I wonder if the openal library, when being paused by simgear
as a consequence of the sound mute request, can somehow be
made to close the sound device? (I.e., is it possible
to have simgear init openal in a different way for this
to happen, or does it need a change in openal?)


In theory this might be possible, but what would we gain by this?

Erik


___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] a question on Sound/fg_fx.cxx /sim/sound/pause processing

2005-10-13 Thread Vassilii Khachaturov
  I wonder if the openal library, when being paused by simgear
  as a consequence of the sound mute request, can somehow be
  made to close the sound device? (I.e., is it possible
  to have simgear init openal in a different way for this
  to happen, or does it need a change in openal?)

 In theory this might be possible, but what would we gain by this?


People like me with a lousy single-dsp on-board sound chips
would be able to pause the simulation sound while debugging some flight
things, and releasing the sound for other uses.


___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] a question on Sound/fg_fx.cxx /sim/sound/pause processing

2005-10-13 Thread Erik Hofman

Vassilii Khachaturov wrote:


People like me with a lousy single-dsp on-board sound chips
would be able to pause the simulation sound while debugging some flight
things, and releasing the sound for other uses.


So, you're really more interested in getting real sound disabling code 
rather than sound muting as it is now.


Erik

___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] a question on Sound/fg_fx.cxx /sim/sound/pause processing

2005-10-13 Thread Oliver Schroeder
Am Thursday 13 October 2005 15:29 schrieb Erik Hofman:
 Vassilii Khachaturov wrote:
  People like me with a lousy single-dsp on-board sound chips
  would be able to pause the simulation sound while debugging some flight
  things, and releasing the sound for other uses.

 So, you're really more interested in getting real sound disabling code
 rather than sound muting as it is now.

Which reminds me of another thing. Is it possible to use /dev/dsp in a 
non-blocking mode? I want to start a second application which uses /dev/dsp 
while flightgear is running.
I was investigating several applications which can serve as a radio for 
multiplayermode and noticed that it is not possible.

regards,
Oliver

___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] a question on Sound/fg_fx.cxx /sim/sound/pause processing

2005-10-13 Thread Curtis L. Olson

Oliver Schroeder wrote:


Am Thursday 13 October 2005 15:29 schrieb Erik Hofman:
 


Vassilii Khachaturov wrote:
   


People like me with a lousy single-dsp on-board sound chips
would be able to pause the simulation sound while debugging some flight
things, and releasing the sound for other uses.
 


So, you're really more interested in getting real sound disabling code
rather than sound muting as it is now.
   



Which reminds me of another thing. Is it possible to use /dev/dsp in a 
non-blocking mode? I want to start a second application which uses /dev/dsp 
while flightgear is running.
I was investigating several applications which can serve as a radio for 
multiplayermode and noticed that it is not possible.




My general opinion is I'm not sure I would like to see us overly 
complicate the flightgear code to work around older hardware limitations.


I know it's a minor inconvenience if you are on a long flightgear flight 
and would like to fire up your mp3 player in the background (and find 
that you can't) but this is going to be a problem for any application 
that uses sound and I don't really like the idea of overly complicating 
the flightgear audio code just for this.


This isn't a problem on most newer audio hardware which happily knows 
how to share/mix between multiple audio applications.


Personally I think that this problem is outside of the scope of 
FlightGear and we shouldn't worry about it.


Curt.

--
Curtis Olsonhttp://www.flightgear.org/~curt
HumanFIRST Program  http://www.humanfirst.umn.edu/
FlightGear Project  http://www.flightgear.org
Unique text:2f585eeea02e2c79d7b1d8c4963bae2d


___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] a question on Sound/fg_fx.cxx /sim/sound/pause processing

2005-10-13 Thread AJ MacLeod
On Thursday 13 October 2005 14:42, Oliver Schroeder wrote:
 Which reminds me of another thing. Is it possible to use /dev/dsp in a
 non-blocking mode? I want to start a second application which uses /dev/dsp
 while flightgear is running.

Not as far as I'm aware - with ALSA, one should use /dev/adsp which is 
nonblocking IIRC, but of course ALSA is only on Linux.  No idea what the 
options are for a cross-platform solution..

 I was investigating several applications which can serve as a radio for
 multiplayermode and noticed that it is not possible.

I think something like this is badly needed - trying to fly with any degree of 
coordination with other people is practically impossible using any system 
which involves typing.

Cheers,

AJ

___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] a question on Sound/fg_fx.cxx /sim/sound/pause processing

2005-10-13 Thread Erik Hofman

Oliver Schroeder wrote:

Am Thursday 13 October 2005 15:29 schrieb Erik Hofman:


Vassilii Khachaturov wrote:


People like me with a lousy single-dsp on-board sound chips
would be able to pause the simulation sound while debugging some flight
things, and releasing the sound for other uses.


So, you're really more interested in getting real sound disabling code
rather than sound muting as it is now.



Which reminds me of another thing. Is it possible to use /dev/dsp in a 
non-blocking mode? I want to start a second application which uses /dev/dsp 
while flightgear is running.


It looks like that isn't such a wise idea:
http://opensource.creative.com/pipermail/openal-devel/2004-June/000346.html

Erik

___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] a question on Sound/fg_fx.cxx /sim/sound/pause processing

2005-10-13 Thread Jon Stockill

Oliver Schroeder wrote:

Which reminds me of another thing. Is it possible to use /dev/dsp in a 
non-blocking mode? I want to start a second application which uses /dev/dsp 
while flightgear is running.
I was investigating several applications which can serve as a radio for 
multiplayermode and noticed that it is not possible.


esd or artsd would allow you to share the device. I suspect you'd need 
to start the sound daemon, then your comms s/w (which would need to use 
the device read/write), then flightgear (write only).


--
Jon Stockill
[EMAIL PROTECTED]

___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] a question on Sound/fg_fx.cxx /sim/sound/pause processing

2005-10-13 Thread Vassilii Khachaturov
 This isn't a problem on most newer audio hardware which happily knows
 how to share/mix between multiple audio applications.

 Personally I think that this problem is outside of the scope of
 FlightGear and we shouldn't worry about it.

 Curt.

Fair enough. I was just hoping for a simple openal-level solution
known --- I agree it's not worth deep complications.

V.


___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] a question on Sound/fg_fx.cxx /sim/sound/pause processing

2005-10-13 Thread Oliver Schroeder
Am Thursday 13 October 2005 16:03 schrieb Curtis L. Olson:
 Oliver Schroeder wrote:
 Which reminds me of another thing. Is it possible to use /dev/dsp in a
 non-blocking mode? I want to start a second application which uses
  /dev/dsp while flightgear is running.
 I was investigating several applications which can serve as a radio for
 multiplayermode and noticed that it is not possible.

 My general opinion is I'm not sure I would like to see us overly
 complicate the flightgear code to work around older hardware limitations.

I hope we don't need to change anything code-wise

 I know it's a minor inconvenience if you are on a long flightgear flight
 and would like to fire up your mp3 player in the background (and find
 that you can't) but this is going to be a problem for any application
 that uses sound and I don't really like the idea of overly complicating
 the flightgear audio code just for this.

Actually I was thinking about VoiP applications which can be used as real 
comms.
I'm not familiar with multimeadia things and thought /dev/dsp is used directly 
without any wrapper which then blocks other applications. However, I will try 
to use some sound daemons. But does it work on all supported plattforms?

regards,
Oliver


___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] a question on Sound/fg_fx.cxx /sim/sound/pause processing

2005-10-13 Thread Ralf Gerlich

Hi,

Jon Stockill schrieb:

Oliver Schroeder wrote:

Which reminds me of another thing. Is it possible to use /dev/dsp in a 
non-blocking mode? I want to start a second application which uses 
/dev/dsp while flightgear is running.
I was investigating several applications which can serve as a radio 
for multiplayermode and noticed that it is not possible.



esd or artsd would allow you to share the device. I suspect you'd need 
to start the sound daemon, then your comms s/w (which would need to use 
the device read/write), then flightgear (write only).


I'm starting FlightGear on Linux as

   esddsp fgfs

which essentially detours access from /dev/dsp to the sound daemon. 
There is a delay in audio of about 1/2s (try the flaps), but otherwise 
it's fine.


Regards,
Ralf


___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] a question on Sound/fg_fx.cxx /sim/sound/pause processing

2005-10-13 Thread Andy Ross
Curtis L. Olson wrote:
 Oliver Schroeder wrote:
  Which reminds me of another thing. Is it possible to use /dev/dsp in
  a non-blocking mode?

 My general opinion is I'm not sure I would like to see us overly
 complicate the flightgear code to work around older hardware limitations.
 [...]
 This isn't a problem on most newer audio hardware which happily knows
 how to share/mix between multiple audio applications.

Hardware mixing is, of course, the best solution, but note also that
OpenAL can be built with any of a zillion back ends, among them the
various sounds servers (esd, arts) which do their own mixing.

Andy

___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


[Flightgear-devel] a question on Sound/fg_fx.cxx /sim/sound/pause processing

2005-10-12 Thread Vassilii Khachaturov
I wonder if the openal library, when being paused by simgear
as a consequence of the sound mute request, can somehow be
made to close the sound device? (I.e., is it possible
to have simgear init openal in a different way for this
to happen, or does it need a change in openal?)

Vassilii


___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d