From owner-freebsd-multimedia Thu Feb 21 12:56:26 2002 Delivered-To: freebsd-multimedia@freebsd.org Received: from jupiter.linuxengine.net (jupiter2.linuxengine.net [209.61.188.254]) by hub.freebsd.org (Postfix) with ESMTP id 6850637B400 for ; Thu, 21 Feb 2002 12:56:22 -0800 (PST) Received: from jupiterweb.commercevault.com (jupiterweb.commercevault.com [209.61.179.16] (may be forged)) by jupiter.linuxengine.net (8.11.6/8.11.0) with ESMTP id g1LKuAR20115; Thu, 21 Feb 2002 14:56:10 -0600 Date: Thu, 21 Feb 2002 14:56:10 -0600 (CST) From: John Utz X-X-Sender: john@jupiter.linuxengine.net To: =?ISO-8859-1?Q?Martin_Fax=E9r?= Cc: Danovitsch@Danovitsch.dnsq.org, Subject: Re: No FM synthesizer in PCI soundblasters? In-Reply-To: <20020221181944.0971b476.gmh003532@brfmasthugget.se> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org oops. i forgot about vchans. i havent used it yet, but as martin alludes to here, it should do the trick. *but* you would potentially have to recompile the apps and make them aware of vchans if they didnt have a command line argument for which device to use On Thu, 21 Feb 2002, Martin Faxér wrote: > On Thu, 21 Feb 2002 17:13:57 +0100 > "Daan Vreeken [PA4DAN]" wrote: > > > Hi, > > > > I have a FreeBSD machine that's playing music via it's SoundBlaster PCI128. > > I want to create some beep's with it, during the music, through the soundcard. > > > > Opening /dev/midi0 or /dev/sequencer0 just gives "Device not configured". > > And opening /dev/dsp0 and trying for example ioctl "SNDCTL_SYNTH_INFO", gives > > me "Invalid argument". > > > > Is my PCI-soundcard just not equipped with a FM synthesizer, or am I missing > > something here? > > > > What I am trying to do is playing short tones while some other program is > > playing sound. If there is any other way to do this, other than in-software > > mixing the two streams (music & tones) into one, I would like to know how :) > > You could let the FreeBSD kernel mix the two streams for you, by using vchans. > Try playing with the sysctl hw.snd.pcm0.vchans (I have it set to 4) and then > opening /dev/dsp0.[0123]. > > It works quite OK for me, for example I have XMMS set to use /dev/dsp0.3, so > other programs won't give me a "Device busy" if I try to utilize /dev/dsp while > I'm playing an MP3... > > > > > -- > > Control the lights in my room: > > http://www.Danovitsch.dnsq.org/webcam > > > > Moo, > > ]:8) > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-multimedia" in the body of the message > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-multimedia" in the body of the message > -- John L. Utz III john@utzweb.net Idiocy is the Impulse Function in the Convolution of Life To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message