From owner-freebsd-multimedia@FreeBSD.ORG Wed Apr 22 20:34:45 2015 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5C77EE6A for ; Wed, 22 Apr 2015 20:34:45 +0000 (UTC) Received: from quine.pinyon.org (quine.pinyon.org [65.101.5.249]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 34D5C1201 for ; Wed, 22 Apr 2015 20:34:44 +0000 (UTC) Received: by quine.pinyon.org (Postfix, from userid 122) id AC6141602C3; Wed, 22 Apr 2015 13:34:43 -0700 (MST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on quine.pinyon.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 Received: from feyerabend.n1.pinyon.org (feyerabend.n1.pinyon.org [10.0.10.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by quine.pinyon.org (Postfix) with ESMTPSA id 498F71600B5; Wed, 22 Apr 2015 13:34:41 -0700 (MST) Message-ID: <553805E1.80303@pinyon.org> Date: Wed, 22 Apr 2015 13:34:41 -0700 From: "Russell L. Carter" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Hans Petter Selasky , freebsd-multimedia@freebsd.org Subject: Re: uaudio0 -> audacity not recording References: <5536BC53.4070107@pinyon.org> <55375172.8040605@selasky.org> In-Reply-To: <55375172.8040605@selasky.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Apr 2015 20:34:45 -0000 Hi Hans, On 04/22/15 00:44, Hans Petter Selasky wrote: > On 04/21/15 23:08, Russell L. Carter wrote: >> Greetings, >> I am going to take a stab at this again before giving up. >> On 10/stable, I have a Behringer UCA202 that plays fine. >> [...] >> >> When I start up audacity, I see displayed: >> >> OSS, /dev/dsp, 2(Stereo) Recording Channels, /dev/dsp >> >> When I click on the monitor pane, I get level bars corresponding to >> the monitor levels I'm hearing. I hit the record button and I seem to >> be seeing sensible record levels. But when I hit the (re)play >> button, I just hear a bunch of garbled noise, not very loud. A >> curiosity to me, but perhaps unimportant is that the audacity displays >> /dev/dsp, but only /dev/dsp0.0 exists. >> >> I build audacity using poudriere, and all options are set except >> for lame and debug. >> >> Could be a rookie mistake with audacity, or freebsd recording, or >> something else. Any ideas? This setup works fine on linux. >> > > Hi, > > Are you running a -stable or -current kernel? stable r281044 > Could you try to record using "sox", "play" and "rec" utilities instead? Good idea: rcarter@feyerabend> ls -lt /dev/dsp* crw-rw-rw- 1 root wheel 0xaf Apr 22 13:21 /dev/dsp0.0 rcarter@feyerabend> export AUDIODEV=/dev/dsp0.0 rcarter@feyerabend> rec output.flac Input File : '/dev/dsp0.0' (ossdsp) Channels : 2 Sample Rate : 48000 Precision : 16-bit Sample Encoding: 16-bit Signed Integer PCM The cute little monitor line seems to be in sync with the audio I'm hearing from the speakers being played through the UCA202. On playback in play or mpv, I get the same sort of garbled noise, not very loud, that I hear on playback in audacity. There is no jackd or pulse, etc. I'm trying to keep the setup as simple as necessary. It seems like I'm close... Thanks, Russell > I have one of these audio adapters myself, and the problem is likely in > the audio backend which audacity is using. See this PR for example, > where hardcoded Linux OSS values are used: > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199558 > > If you try to configure jackd to use 24-bit samples under FreeBSD you'll > simply get a bunch of noise, because the wrong sample FMT is selected. > > --HPS >