[Portaudio] linux/ALSA issue?

Gary Scavone gary@ccrma.stanford.edu
Mon, 28 May 2001 11:49:19 -0700 (PDT)

Unfortunately, ALSA's oss-emulation doesn't always behave the way it
is supposed to.  I've had similar problems with my code.  From my
experience, it looks like you need native ALSA api code to use the
ALSA drivers ... forget about oss-emulation unless you are doing the
most basic of things (xmms works).  Since portaudio is attempting to
query device capabilities, there are likely to be problems.


On Mon, 28 May 2001, Stephen Brandon wrote:

>>Hi all,
>>just another linux quirk -- I don't know if it's because I'm using ALSA emulation of OSS, or what,
>>but the line:
>>  numChannles = 16;
>>  if (ioctl(tempDevHandle, SNDCTL_DSP_CHANNELS, &numChannels) == -1)
>>does not auto-negotiate the number of channels on my machine. Douglas put in a maximum of
>>numChannels = 16, which fails with an error on my machine -- I have to feed it the right number (2
>>in my case).
>>Can anyone shed any light on this? Or should I write a short negotiation routine and submit it to
>>Stephen Brandon
>>Portaudio mailing list