Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Jan 2010 20:37:46 -0500
From:      Glen Barber <glen.j.barber@gmail.com>
To:        Gary Kline <kline@thought.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: any port use /dev/dsp directly?
Message-ID:  <20100114013746.GB67999@orion.hsd1.pa.comcast.net>
In-Reply-To: <20100114012059.GA3921@thought.org>
References:  <20100114012059.GA3921@thought.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Gary Kline wrote: 
> 
> 	I have a couple short programs where I mess with /dev/dsp.  I'll open
> 	check to be sure the speed is right, open in mono or stereo, &c.  is 
> 	there anything is ports that uses this dev by opening, doing ioctls and 
> 	so forth?
> 
> 	I think I may need to flush my data before closing the FILE *FP. Not
> 	sure; just guessing.
> 

I don't know if this directly answers your question, but from sound(4):

hw.snd.default_unit
	Default sound card for systems with multiple sound cards.  When
	using devfs(5), the default device for /dev/dsp.  Equivalent to a
	symlink from /dev/dsp to /dev/dsp${hw.snd.default_unit}.

FWIW, www/linux-f10-flashplugin10 is using /dev/dsp0.0 on my system at the
moment.

Regards,

-- 
Glen Barber



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100114013746.GB67999>