From owner-freebsd-multimedia@freebsd.org Tue Aug 7 09:42:10 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 2A6EE10554D9 for ; Tue, 7 Aug 2018 09:42:10 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (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 C2C33864CA for ; Tue, 7 Aug 2018 09:42:09 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [62.141.128.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id CEDD32600DC; Tue, 7 Aug 2018 11:42:07 +0200 (CEST) Subject: Re: Choppy audio using virtual_oss To: =?UTF-8?Q?Goran_Meki=c4=87?= Cc: freebsd-multimedia@freebsd.org References: <20180807003145.7m55dlakppucpkt2@thinker.home.meka.rs> <57293b09-97c6-8b89-24eb-2497529f2ba5@selasky.org> <20180807085240.mcyaj2siqwtydjyj@hal9000.home.meka.rs> <95ed28ae-57a4-ede0-274c-3ae863d4eb0b@selasky.org> <20180807092204.opswsmebt3tohsvj@hal9000.home.meka.rs> From: Hans Petter Selasky Message-ID: <6c6613fc-1bfd-71cd-8f7d-84282a258d4a@selasky.org> Date: Tue, 7 Aug 2018 11:41:46 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180807092204.opswsmebt3tohsvj@hal9000.home.meka.rs> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US 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: Tue, 07 Aug 2018 09:42:10 -0000 On 08/07/18 11:22, Goran Mekić wrote: >> Can you ktrace ardour and see how many bytes it is writing at a time to OSS? > Ardour doesn't have those settings, as it uses jack for that. Should I > try ktrace the jackd process? Thanx! You can try. Check the CPU usage(s). If some process is running close to 100% it won't work, you need larger buffers. I'm a bit worried that the high sample rate combined with libsamplerate will overturn the system. Did you try to use 44100 or 48000 Hz. Is there any particular reason you are using 88200 Hz ? Another thing to check is if your kernel is compiled with debugging / invariants / witness and such. It will make the character device in userspace processing slower. --HPS