Subject: Re: new au.c
To: SUNAGAWA Keiki <kei_sun@ba2.so-net.ne.jp>
From: SamMaEl <rimsky@teleport.com>
List: port-mac68k
Date: 05/09/1998 16:49:04
On Sun, 10 May 1998, SUNAGAWA Keiki wrote:
> Hi all,
Hello!
> 2. Get some sound file with raw format.
Define 'raw format'? What sound formats will this program work
with?
> 3. Type './au <file1> <file2> <mode>'. '/dev/null' can be
> used for file1 or file2 specifies no input. mode must be one
> of 0 (monaural) or 2 (stereo). Only left channel generates
> sound in monaural mode.
So, if it's a mono sound, you would do something like:
au sound /dev/null 0 ? And for stereo something like:
au sound sound 1 ? Or would it be au /dev/null sound 1 ?
> if ((afd = open("/dev/audio", O_RDWR)) == (-1)) {
> fprintf(stderr, "can't open /dev/audio\n");
> exit (1);
Did you link /dev/audio to /dev/asc0? Or is there something I'm
missing...? As far as me and my MAKEDEV know, there is no /dev/audio. 8-(
So I get the above error.
Ryan
-----
HELO... my name is rewt... you have SIGKILLed my father... prepare to vi!