From alsa-user-owner@alsa.jcu.cz  Wed Sep 23 19:55:10 1998
Received: from web03.iname.net (web03.iname.net [165.251.4.13])
	by marvin.jcu.cz (8.9.1a/8.9.1) with ESMTP id TAA07491
	for <alsa-user@alsa.jcu.cz>; Wed, 23 Sep 1998 19:52:08 +0200
From: pedro.i.sanchez@altavista.net
Received: (from root@localhost) by web03.iname.net (8.8.8/8.8.0) id NAA02610; Wed, 23 Sep 1998 13:51:50 -0400 (EDT)
Date: Wed, 23 Sep 1998 13:51:50 -0400 (EDT)
Message-Id: <199809231751.NAA02610@web03.iname.net>
Content-Type: text/plain
MIME-Version: 1.0
CC: alsa-user@alsa.jcu.cz
To: perex@jcu.cz
Content-Transfer-Encoding: 7bit
Reply-To: alsa-user@alsa.jcu.cz
Sender: alsa-user-owner@alsa.jcu.cz
Precedence: list

Thank you for your answer but I still don't get what exactly I'm supposed to do. These are the devices I have right now:

crw-rw-rw-   1 root     root      14,   4 Sep 21 13:33 audio
crw-rw----   1 root     audio     14,  20 Apr 11 19:24 audio1
crw-rw-rw-   1 root     root      14,   3 Sep 21 13:33 dsp
crw-rw-rw-   1 root     root      14,   5 Sep 21 13:33 dsp1
crw-rw-rw-   1 root     root      14,   5 Sep 21 13:33 dsp16
crw-rw-rw-   1 root     root      14,   3 Sep 21 13:33 dsp8
crw-rw-rw-   1 root     root      14,   0 Sep 21 13:33 mixer
crw-rw----   1 root     audio     14,  16 Apr 11 19:24 mixer1

1. Are you suggesting to change these devices to

crw-rw-rw-   1 root     root      14,   4 Sep 21 13:33 audio
crw-rw----   1 root     audio     14,  20 Apr 11 19:24 audio1
crw-rw-rw-   1 root     root      14,  19 Sep 21 13:33 dsp
crw-rw-rw-   1 root     root      14,  21 Sep 21 13:33 dsp1
crw-rw-rw-   1 root     root      14,  21 Sep 21 13:33 dsp16
crw-rw-rw-   1 root     root      14,  19 Sep 21 13:33 dsp8
crw-rw-rw-   1 root     root      14,  16 Sep 21 13:33 mixer
crw-rw----   1 root     audio     14,  16 Apr 11 19:24 mixer1
?

2. Speakfree has a couple of variables to define the input and output devices.

#ifdef IN_AUDIO_DEV
#define SoundFileIn IN_AUDIO_DEV
#else
#define SoundFileIn     "/dev/audio"
#endif

#ifdef OUT_AUDIO_DEV
#define SoundFileOut OUT_AUDIO_DEV
#else
#define SoundFileOut    "/dev/audio"
#endif

Shall I replace "/dev/audio" with something else?

Thank you again for your time.

Jaroslav Kysela wrote:
> 
> On Wed, 23 Sep 1998 pedro.i.sanchez@altavista.net wrote:
> 
> > Hello,
> >
> > I succesfully installed two sound blaster cards in my
> > Linux box and I can send sound files to either of them
> > using the aplay program.
> >
> > I want to configure an application (speakfreely, which doesn't use the alsa
> > API) to use card2 instead of card1, which is the default. My question
> > is: What are the device filenames (AUDIO_IN, AUDIO_OUT) I have to use in
> > order to have non-alsa-aware applications to work with my second sound
> > card?
> 
> OK. ALSA OSS emulation uses for each soundcard bits 4-7 in minor device
> number. These bits identifies soundcard, so second soundcard should be
> accessible via these devices (for example):
> 
> crw--w--w-   1 root     root      14,  21 Jan  4  1998 /dev/dspW1
> crw-rw-rw-   1 root     sys       14,  16 Apr 25  1995 /dev/mixer1
> 
> while first soundcard uses these devices:
> 
> crw--w--w-   1 root     root      14,   5 Jan  4  1998 /dev/dspW0
> crw-rw-rw-   1 root     root      14,   0 Jul  6 14:44 /dev/mixer0
> 
> Simply add 16 to minor number of basic devices for first soundcard...
> 
>                                                 Jaroslav
> 
> -----
> Jaroslav Kysela <perex@jcu.cz>
> Academic Computer Centre, University of South Bohemia
> Branisovska 31, C. Budejovice, CZ-370 05 Czech Republic



----------------------------------------------------------------
Get your free email from AltaVista at http://altavista.iname.com

