From owner-freebsd-multimedia@freebsd.org Thu Jul 12 02:35:40 2018 Return-Path: Delivered-To: freebsd-multimedia@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D0A801046137 for ; Thu, 12 Jul 2018 02:35:40 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ipmail07.adl2.internode.on.net (ipmail07.adl2.internode.on.net [150.101.137.131]) by mx1.freebsd.org (Postfix) with ESMTP id 13576758A4 for ; Thu, 12 Jul 2018 02:35:39 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from unknown (HELO leader.local) ([118.211.92.68]) by ipmail07.adl2.internode.on.net with ESMTP; 12 Jul 2018 12:00:28 +0930 Subject: Re: More than 2 channels of sound fails To: =?UTF-8?B?0JXQstCz0LXQvdC40Lkg0JEuINCh0L/QsNC80LDQutC+0LLRgdC60LjQuQ==?= Cc: freebsd-multimedia@freebsd.org References: <0a5b0b1a-250c-fb43-0448-7f0b77ab9d3f@selasky.org> From: Shane Ambler Message-ID: Date: Thu, 12 Jul 2018 12:00:27 +0930 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-AU Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jul 2018 02:35:41 -0000 On 11/07/2018 22:25, Евгений Б. Спамаковский wrote: > On Tue, Jul 10, 2018 at 4:12 PM Hans Petter Selasky wrote: >> Check the source code for rawrec, if it sets the channels and AFMT >> correctly. >> >> Compare with the source code for virtual_oss in ports. It might also >> help you setup a recording device. > > This allowed me to hack up a trivial test program to set format > (AFMT_S32_NE), samplerate (48k), and channels (6) and measure the time > it takes to read 6 * sizeof(int32) * 48000 bytes from the device. That > turns out to be 1.0000 plus/minus epsilon seconds which is promising; > i.e. the two first programs I tried (sox and rawrec) both suck. > > Thank you sir for those pointers. Does audio/jack see the channels? You probably want qjackctl or patchage to connect them. While it may take a while to learn, audio/ardour5 is designed for multichannel mixing/recording. -- FreeBSD - the place to B...Software Developing Shane Ambler