From owner-freebsd-multimedia@FreeBSD.ORG Wed Mar 15 16:21:20 2006 Return-Path: X-Original-To: freebsd-multimedia@FreeBSD.org Delivered-To: freebsd-multimedia@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DE0FA16A420 for ; Wed, 15 Mar 2006 16:21:20 +0000 (UTC) (envelope-from ariff@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 426C143D48; Wed, 15 Mar 2006 16:21:20 +0000 (GMT) (envelope-from ariff@FreeBSD.org) Received: from misaki64 (root@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with SMTP id k2FGLHQ7091074; Wed, 15 Mar 2006 16:21:18 GMT (envelope-from ariff@FreeBSD.org) Date: Thu, 16 Mar 2006 00:21:11 +0800 From: Ariff Abdullah To: Baldur Gislason Message-Id: <20060316002111.401be08b.ariff@FreeBSD.org> In-Reply-To: <20060315153013.GU20678@gremlin.foo.is> References: <20060315121115.GT20678@gremlin.foo.is> <20060315212125.6aec6723.ariff@FreeBSD.org> <20060315153013.GU20678@gremlin.foo.is> Organization: FreeBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Thu__16_Mar_2006_00_21_11_+0800_F3Wgc_mqhZgYqa.l" Cc: freebsd-multimedia@FreeBSD.org Subject: Re: Skipping audio X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Mar 2006 16:21:20 -0000 --Signature=_Thu__16_Mar_2006_00_21_11_+0800_F3Wgc_mqhZgYqa.l Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Below are my recommendations. Please follow from top-to-down. You don't have to follow it untill the end if (say like) step #1 solves your problem. Even so, I would say that step #7 quite mandatory for multimedia environment (perhaps all of it). On Wed, 15 Mar 2006 15:30:13 +0000 Baldur Gislason wrote: > I'm using VLC media player to play sound, the output goes through > enlightenment sound daemon. >=20 1) Try to avoid esound like a plague. FreeBSD has it's own sound mixing infrastructure (call vchans/virtual channels). Try recompile your vlc with "make -DWITHOUT_ESOUND" and instead [..] (see below for vchan recommendation #4). 2) Use other much simpler, lightweight multimedia player like xmms, mplayer, etc. etc. >=20 > root@clippy:~# sysctl hw.snd > hw.snd.report_soft_formats: 1 > hw.snd.targetirqrate: 32 3) hw.snd.targetirqrate=3D16 > hw.snd.verbose: 2 > hw.snd.maxautovchans: 0 4) hw.snd.maxautovchans=3D10 , so you won't end up with "device busy" in case 4 vchans are not enough. > hw.snd.unit: 0 > hw.snd.pcm0.buffersize: 16384 > hw.snd.pcm0.vchans: 4 5) This should be ok. > hw.snd.pcm0.ac97rate: 48000 >=20 6) Route everything to "/dev/dsp" instead of "/dev/dspX.Y". Let the auto channel allocation do its job. 7) (kernel) Use SCHED_ULE instead of SCHED_4BSD, with PREEMPTION enabled. This is all about audio/multimedia responsiveness. -- Ariff Abdullah FreeBSD --Signature=_Thu__16_Mar_2006_00_21_11_+0800_F3Wgc_mqhZgYqa.l Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (FreeBSD) iD8DBQFEGD75lr+deMUwTNoRAjSWAKCm7iJLDdYwM01jfSHHAGVWCOpKdgCgwRL7 2lOF1eak5bjisfc4zsJIPeY= =daFJ -----END PGP SIGNATURE----- --Signature=_Thu__16_Mar_2006_00_21_11_+0800_F3Wgc_mqhZgYqa.l--