From owner-freebsd-multimedia@freebsd.org Thu Aug 9 00:16:37 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 3EFF910708A9 for ; Thu, 9 Aug 2018 00:16:37 +0000 (UTC) (envelope-from meka@tilda.center) Received: from mail.tilda.center (srv02.tilda.center [199.247.21.11]) by mx1.freebsd.org (Postfix) with ESMTP id 0320E742C4 for ; Thu, 9 Aug 2018 00:16:36 +0000 (UTC) (envelope-from meka@tilda.center) Received: from hal9000.home.meka.rs (unknown [87.116.183.127]) by mail.tilda.center (Postfix) with ESMTPSA id D009312ED5; Thu, 9 Aug 2018 02:16:28 +0200 (CEST) Date: Thu, 9 Aug 2018 02:16:28 +0200 From: Goran =?utf-8?B?TWVracSH?= To: Hans Petter Selasky Cc: freebsd-multimedia@freebsd.org Subject: Re: Choppy audio using virtual_oss Message-ID: <20180809001628.g2rfm4wgagjetsup@hal9000.home.meka.rs> 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> <6c6613fc-1bfd-71cd-8f7d-84282a258d4a@selasky.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="eaikyukv2gqe5pni" Content-Disposition: inline In-Reply-To: <6c6613fc-1bfd-71cd-8f7d-84282a258d4a@selasky.org> User-Agent: NeoMutt/20180716 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, 09 Aug 2018 00:16:37 -0000 --eaikyukv2gqe5pni Content-Type: text/plain; charset=utf-8 Content-Disposition: inline On Tue, Aug 07, 2018 at 11:41:46AM +0200, Hans Petter Selasky wrote: > 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 I took some time to do more testing, and when drumgizmo is run as LV2 plugin inside ardour, I experience the problems I described. No matter what buffer and sample rate parameters I use, the results are the same. Curiously, when I run drumgizmo as a standalone app and connect it to ardour via jack audio/midi, everything works fine. At first I thought it's drumgizmo fault (I'm one of the developers, so it's up to me to inspect it), but the same symptoms are present using only yoshimi connected to jack. If I ever figure out what's wrong with jack (I just presume it's jack's fault), I'll send a patch or howto or something. For now, I can at least work on my song! :o) Also, CPU now is around 50% when everything is running, and sampling rate is still 88.2kHz. As I'm running -RELEASE, there shouldn't be any debugging / invariants / witness. Regards, meka --eaikyukv2gqe5pni Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE1WIFkXy2ZeMKjjKEWj1TknovrLYFAltrh9gACgkQWj1Tknov rLYn2A//T0HTzUjQ20mE89+v+wE5BpfAT/YVbzTqsLgE0Fiw37celP87ykRKqWWW ZDv2qfbN7k6XNlpD0SgOKuTn97KSCERNPbKiuGTRRdczfcENhrehjDcGSrW4AGzH xDa8Ft/BsS4snRBRvEJmlttZG7BAI2rEKgIjjfAxAB0TBh+GcvWh9avU6uvkQG0V mcKkGp6GjVyFs4dAmZ4GZSH8RN+lLw4B483PZll/UNcQqkL32lkHmKas2rv/ZstS QOkJ2bcq3t2CZt/QwCmtUQ8GXfp0bubHRMHgIbUd7/NCg68QIXsW9TZ13is0zigZ jfP0swKbhZ50yQFm3TkWmeEpNklBiaW+z4OeEPcOaR/LzqGc08UPkxVppR/BII9k o3Wi2+ZztcKaTInqU/ckVZEOggAKrA4fLZQP02FrzlJMvYjfjqeDGT7d9ZFdeAXG NOHzQzZuYIaRQ54NrTk74C5wDk09cCg+lGcTMZEVk7obvewrsYwjP7Z5C94x0UaZ YoVzUW+KPKHc/HX201wapLqmSi8AZzvH5sfHtS2j7sWLvnfAnRNKABFli8he+NBo T2SxOYAWRiX6rrYHgC3WgUJgsbkEGJ7wuqlx53jy/TeV3dTOwPcVTjVk3QD5dhF8 pO4sBghSQ0jTr3ONCUooHfXCla3lxBe9jHZNDvphy/frSASVGrs= =Rlvn -----END PGP SIGNATURE----- --eaikyukv2gqe5pni--