[linux-audio-dev] SNDCTL_DSP_CHANNELS problem setting to mono

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: [linux-audio-dev] SNDCTL_DSP_CHANNELS problem setting to mono
From: Overcast, Isaac (Overcasi_AT_evergreen.edu)
Date: Fri Jul 18 2003 - 23:48:32 EEST


Hello all.

Here's the setup:

HW -
stoopid gateway e-3400
onboard AC'97 audio (blech!)

SW -
RedHat 9.0
portaudio (www.portaudio.com)

Now, the problem is portaudio is failing to play mono files. Portaudio lib
code is making an ioctl call that looks like this:

<snip>

int numChannels = 1 ;
ioctl( deviceHandle, SNDCTL_DSP_CHANNELS, &numChannels )

</snip>

This call doesn't fail, but when it returns 'numChannels' == 2. Portaudio
detects this and promptly dies.

Now, i just can't figure out if the problem is the onboard sound device is
just so crappy that it doesn't bother to support mono, or if there is some
wierd kernel module i can build that will fix this issue.

This isn't the worlds biggest deal, but it's just bugging me, you know?

thanks
-isaac


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Sat Jul 19 2003 - 00:02:26 EEST