From owner-freebsd-multimedia@FreeBSD.ORG Tue Dec 6 02:05:37 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C475116A41F for ; Tue, 6 Dec 2005 02:05:37 +0000 (GMT) (envelope-from jester@panix.com) Received: from mail2.panix.com (mail2.panix.com [166.84.1.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 52F2A43D58 for ; Tue, 6 Dec 2005 02:05:37 +0000 (GMT) (envelope-from jester@panix.com) Received: from panix2.panix.com (panix2.panix.com [166.84.1.2]) by mail2.panix.com (Postfix) with ESMTP id A5EF69DECB for ; Mon, 5 Dec 2005 21:05:36 -0500 (EST) Received: (from jester@localhost) by panix2.panix.com (8.11.6p3/8.8.8/PanixN1.1) id jB625aj07066 for freebsd-multimedia@freebsd.org; Mon, 5 Dec 2005 21:05:36 -0500 (EST) Date: Mon, 5 Dec 2005 21:05:36 -0500 From: Jesse Sheidlower To: freebsd-multimedia@freebsd.org Message-ID: <20051206020536.GA16108@panix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.10i Subject: Selecting sound output device? X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Dec 2005 02:05:37 -0000 Forgive me if this is too basic a question for this list, but I haven't been able to find the answer anywhere else. The original version of this message was a long description of the difficulty I had getting USB speakers to work under 6.0, despite having loaded snd_uaudio, having the speakers recognized correctly, etc. But in the process of explaining what I was doing, I discovered that when using XMMS, I could get the speakers to work by setting the sound output device to pcm1, and that was that. Now I'd like to know how to use pcm1 as the output device any time the USB speakers are plugged in, or at least how to control this manually. Both devices are present: $ cat /dev/sndstat FreeBSD Audio Driver (newpcm) Installed devices: pcm0: at io 0x1c00, 0x18c0 irq 11 bufsz 16384 kld snd_ich (1p/1r/4v channels duplex default) pcm1: at addr ? (1p/0r/1v channels duplex) mode 1:(output) 1ch, 16/16bit, pcm, 6400-48000Hz mode 2:(output) 2ch, 16/16bit, pcm, 6400-48000Hz So, if I'm not selecting it in XMMS--if I want to use it for all output--how do I either automatically or explicitly select pcm1 as my sound output device? (I'm using the speakers with a laptop, so I expect to be plugging and unplugging them at other times than boot, if that matters.) Thank you. Jesse Sheidlower P.S. Can I assume that the "6400-48000Hz" line in the /dev/sndstat output above means something other than what it seems to? These are small portable speakers, not subwoofers, but it certainly seems like I'm getting output below 6400Hz.