From owner-freebsd-multimedia@freebsd.org Sat Oct 21 10:55:45 2017 Return-Path: Delivered-To: freebsd-multimedia@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A4BE7E53376 for ; Sat, 21 Oct 2017 10:55:45 +0000 (UTC) (envelope-from mike@reifenberger.com) Received: from mail.eeeit.de (mail.eeeit.de [37.120.160.187]) (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 6B7E9802B6 for ; Sat, 21 Oct 2017 10:55:44 +0000 (UTC) (envelope-from mike@reifenberger.com) Received: from localhost (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: mike@reifenberger.com) by mail.eeeit.de (Postfix) with ESMTPSA id 2A41A7755; Sat, 21 Oct 2017 12:55:42 +0200 (CEST) Received: from ppp-88-217-97-29.dynamic.mnet-online.de (ppp-88-217-97-29.dynamic.mnet-online.de [88.217.97.29]) by mail.eeeit.de (Horde Framework) with HTTPS; Sat, 21 Oct 2017 12:55:41 +0200 Date: Sat, 21 Oct 2017 12:55:41 +0200 Message-ID: <20171021125541.Horde.N1TrWZPmyV0fb0bLe2VBDFF@mail.eeeit.de> From: Michael Reifenberger To: Hans Petter Selasky Cc: freebsd-multimedia@freebsd.org Subject: Re: Advice for audio recording References: <20171020173704.Horde.jj_YkUyt6oyqr6Lqy0qwVD-@mail.eeeit.de> In-Reply-To: User-Agent: Horde Application Framework 5 Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Oct 2017 10:55:45 -0000 Zitat von Hans Petter Selasky : > On 10/20/17 17:37, Michael Reifenberger wrote: >> >> (Hmm, why dev.pcm.4.rec.vchanformat: s16le:2.0 , shouldn't it be s24le:2.0?) > > Hi, > > You should override this into s24le:2.0 - yes. Further you should > set bitperfect to avoid resampling issues and the software volume > control. The DSP device will then refuse to open in any other ways > than what is printed in dmesg, with regards to sampling rate and > sample size and channels. > > In 11- and 12- you can simply put dev.pcm.4.rec.vchanformat=xxx in > the kernel environment (man kenv) or in /boot/loader.conf (requires > reboot) and these settings will be programmed automatically for pcm > #4 every time you plug this device. > Thanks for the hints! I can now: either: % dd if=/dev/dsp4.0 of=/tmp/s24le2.raw count=10000 and read as 24bit LE stereo 96khz RAW into audacity or directly with sox: % sox -r96k -esigned -b24 -c2 -t raw /dev/dsp4.0 s24le2.flac BTW: flac123 doesn't like 24bit flac file, only 16bit flac files get played... > At home I'm using: > http://www.music-group.com/Categories/Behringer/Mixers/Digital-Mixers/X32-RACK/p/P0AWN > > Which I'm very happy with. It works well with FreeBSD and is > controlled via a wireless pad (iOS or Android at your choice). > Thats for sure a quite big/professional "home" recording machine :-) Thanks a lot for your help! Greetings --- Mike Gruß --- Michael Reifenberger