[Alsa-devel] questions about card detection

2003-08-29 Thread Joshua Haberman
Two questions. First: Is it possible to determine the maximum number of channels for a sound card that is in use by another application? My method for detecting the number of channels is: - open the pcm - use the hw_params API to determine the number of channels But if another application has t

[Alsa-devel] Re: [linux-audio-dev] ok, jump on slashdot right now, ALSA story in progress

2002-11-01 Thread Joshua Haberman
Paul Davis <[EMAIL PROTECTED]> wrote: > i don't want to blow my moderator points this time, so get busy. there > is lots of confusion, mis-information and general cluelessness in the > responses so far. get to it, provide me with some stuff to moderate > upward ... What a coincidence: I've had bre

Re: [Alsa-devel] poll_descriptors_count

2002-07-01 Thread Joshua Haberman
On Mon, 1 Jul 2002, Joshua Haberman wrote: > > This gives me the impression that snd_pcm_poll_descriptors_revents() is a > > function that somehow "summarizes" all of the pfds into a single revents > > that speaks to the status of the entire PCM handle. * Paul Dav

Re: [Alsa-devel] poll_descriptors_count

2002-07-01 Thread Joshua Haberman
* Paul Davis ([EMAIL PROTECTED]) wrote: > >Also, how should programs interpret multiple poll descriptors: if the > >poll succeeds on some descriptors but not others, does this mean the > >stream is only "partially" ready? > > yes. see the internals of JACK's jack/drivers/alsa/alsa_driver.c Hones

[Alsa-devel] poll_descriptors_count

2002-06-30 Thread Joshua Haberman
Hello, int snd_pcm_poll_descriptors_count(snd_pcm_t *pcm) { assert(pcm); return 1; } I don't understand: why the abstraction for the number of poll descriptors when it is always 1? What could change in the future to require more poll descriptors per stream? Also, how should programs in

Re: [Alsa-devel] PCM API questions

2002-06-24 Thread Joshua Haberman
* Takashi Iwai ([EMAIL PROTECTED]) wrote: > > Hello all! > > > > I am writing a PortAudio implementation for ALSA. PortAudio is designed > > to present a single API that cross-platform applications can use on many > > different platforms. > > > > I have some questions I hope you can answer for

Re: [Alsa-devel] PCM API questions

2002-06-24 Thread Joshua Haberman
* Jaroslav Kysela ([EMAIL PROTECTED]) wrote: > On Mon, 24 Jun 2002, Paul Davis wrote: > > > >Maybe this is what the "default" device is intended for, but can it > > >accommodate more than one card? I happen to have a sound card built into > > >my motherboard and another in a PCI slot -- how do I

Re: [Alsa-devel] PCM API questions

2002-06-24 Thread Joshua Haberman
* Paul Davis ([EMAIL PROTECTED]) wrote: > >the names above are not defined on all cards (except for default). > >i think we need a kind of config database for each card. > >this is useful not only for pcm but also for parsing the mixer > >structure. > > i think this is the wrong solution. i belie

[Alsa-devel] PCM API questions

2002-06-22 Thread Joshua Haberman
Hello all! I am writing a PortAudio implementation for ALSA. PortAudio is designed to present a single API that cross-platform applications can use on many different platforms. I have some questions I hope you can answer for me. 1. Is there any reason to choose anything other than mmap mode f