Subject: Re: How do you get /dev/audio to play stereo?
To: Dave Huang <khym@bga.com>
From: Alec H. Peterson <chuckie@panix.com>
List: current-users
Date: 11/17/1995 19:28:17
Dave Huang writes:
>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?
You might want to try using /dev/sound instead of /dev/audio. As far
as I know, /dev/audio just makes the audio device behave like a Sun,
and most suns that I know of have mono output...
Alec
--
+------------------------------------+--------------------------------------+
|Alec Peterson - chuckie@panix.com | Panix Public Access UNIX and Internet|
|Network Administrator | New York City, NY |
+------------------------------------+--------------------------------------+