Re: [linux-audio-dev] alsa mixing

2007-01-13 Thread Milan Mimica
James Courtier-Dutton wrote: To do the hardware mixing, one simply opens the alsa device name, e.g. "plug:front" multiple times, and the hardware will mix them together. I know so far. But I would like to get a bit more from ALSA. For example, open a 'slave' 2-ch device, and open some mono s

Re: [linux-audio-dev] alsa mixing

2007-01-13 Thread James Courtier-Dutton
Milan Mimica wrote: > For games programming, I suggest you use the OpenAL API. > OpenAL will use the hardware capabilities of the sound card, if present, > leaving the game to not worry if the work is done in hardware or software. OpenAL can use hardware capabilities of the sound card? Hm, c

Re: [linux-audio-dev] alsa mixing

2007-01-13 Thread Milan Mimica
James Courtier-Dutton wrote: If I missunderstood what you are doing, and you instead wish to implement your own OpenAL type API, then you can ask alsa-lib to tell you how many channels the hardware can mix together. Allegro provides a unified API to various sound interfaces on various platf

Re: [linux-audio-dev] alsa mixing

2007-01-12 Thread James Courtier-Dutton
Milan Mimica wrote: Hello! We're designing a new sound subsystem for allegro game programming library, and we would like to take advantages of multiple hardware voice capabilities. On linux, ALSA is the only software that possibly could expose API for such a capability, is that right? It is

Re: [linux-audio-dev] alsa mixing

2007-01-12 Thread Marc-André Lureau
On 1/10/07, Jussi Laako <[EMAIL PROTECTED]> wrote: Paul Davis wrote: > welcome to winmodem for audio ... Well, in this particular case, let's just see what the generic user out there probably has. In quite a lot of cases it's some SoundBlaster Audigy2 or X-Fi variant which both have somewhat ex

Re: [linux-audio-dev] alsa mixing

2007-01-10 Thread Paul Davis
On Wed, 2007-01-10 at 18:02 +0200, Jussi Laako wrote: > Paul Davis wrote: > > in general, you should forget about the h/w capabilities of an audio > > interface. for every user that has a device with some interesting > > qualities, there will be 10 who do not. > > > > welcome to winmodem for audio

Re: [linux-audio-dev] alsa mixing

2007-01-10 Thread Jussi Laako
Paul Davis wrote: > in general, you should forget about the h/w capabilities of an audio > interface. for every user that has a device with some interesting > qualities, there will be 10 who do not. > > welcome to winmodem for audio ... Well, in this particular case, let's just see what the gener

Re: [linux-audio-dev] alsa mixing

2007-01-10 Thread Milan Mimica
Paul Davis wrote: if there *are* multiple h/w PCM voices, then ALSA provides "subdevices" which get opened automatically each time you call snd_pcm_open() on a given PCM device. Yes, that's what I meant. ALSA is not intended to provide any kind of live, real time signal distribution API. thi

Re: [linux-audio-dev] alsa mixing

2007-01-10 Thread Paul Davis
On Mon, 2007-01-08 at 23:23 +0100, Milan Mimica wrote: > Hello! > > We're designing a new sound subsystem for allegro game programming > library, and we would like to take advantages of multiple hardware voice > capabilities. very few audio interfaces have this feature anymore. most h/w makers

Re: [linux-audio-dev] alsa mixing

2007-01-10 Thread Milan Mimica
Patrick Shirkey wrote: Surely this is a task that is up to the app to handle? That doesn't answer my question. What about unused fancy hardware? ALSA obviously has the code ('route', 'dmix' and 'plug' plug-ins), it just doesn't provide the API (or I can't find it). You would have to provid

Re: [linux-audio-dev] alsa mixing

2007-01-09 Thread Patrick Shirkey
Milan Mimica wrote: Hello! We're designing a new sound subsystem for allegro game programming library, and we would like to take advantages of multiple hardware voice capabilities. On linux, ALSA is the only software that possibly could expose API for such a capability, is that right? It is

[linux-audio-dev] alsa mixing

2007-01-08 Thread Milan Mimica
Hello! We're designing a new sound subsystem for allegro game programming library, and we would like to take advantages of multiple hardware voice capabilities. On linux, ALSA is the only software that possibly could expose API for such a capability, is that right? It is possible to open mul