Subject: Re: How do you get /dev/audio to play stereo?
To: None <khym@bga.com>
From: Mike Long <mike.long@analog.com>
List: current-users
Date: 11/18/1995 16:41:05
Dave Huang <khym@bga.com> wrote:

>I'm running NetBSD/i386 with a SoundBlaster 16 and can't figure out how 
>to get stereo output out of /dev/audio. I've made the AUDIO_SETINFO ioctl 
>to change the number of channels to 2, but when I write to the device, it 
>sounds like mono to me :) I guess what I want to know is what format the 
>data I write needs to be in. Right now, I'm writing out interleaved left 
>sample/right sample... should I be doing something else?

This is a shortcoming in the driver.  The sb driver mostly treats the
SB16 as if it were an SBPro.  The SB16 and the SBPro use different
methods to select stereo output, so that is why you still get mono on
your SB16.
-- 
Mike Long <mike.long@analog.com>           http://www.shore.net/~mikel
VLSI Design Engineer         finger mikel@shore.net for PGP public key
Analog Devices, CPD Division          CCBF225E7D3F7ECB2C8F7ABB15D9BE7B
Norwood, MA 02062 USA                assert(*this!=opinionof(Analog));