Date: Thu, 16 Mar 2006 00:21:11 +0800 From: Ariff Abdullah <ariff@FreeBSD.org> To: Baldur Gislason <baldur@foo.is> Cc: freebsd-multimedia@FreeBSD.org Subject: Re: Skipping audio 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>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <baldur@foo.is> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060316002111.401be08b.ariff>