11 March 2008 г. 00:02:16 Jacob Meuser wrote: > On Fri, Jan 18, 2008 at 04:23:36PM -0500, Deanna Phillips wrote: > > As you may recall, a long-overdue update to esound was backed > > out at the last minute before the 4.2 release. The thread is > > here: > > > > http://marc.info/?l=openbsd-ports&m=118541595130336&w=2 > > > > I've just tried the 2.38 update on auich(4) and can't reproduce > > the problems we once had. > > > > 2.38 also fixes some bugs with socket creation and cleanup that > > are causing micropolis to skip some sounds. This bug can be > > reproduced by throwing many files at esdplay at once with > > something like 'for file in *.wav ; do esdplay $file& ; done', > > or running the Firebomb scenario in Micropolis and watching > > stderr. > > > > esd should be able to mix those sounds (that's what it's for), > > but with the version in tree it gets very confused and skips > > some, fails to open the audio device or resample, etc. > > > > So. Here's Martynas's old diff pulled from cvs. > > > > Anyone want to try again? > > here's a new diff, with some improvements in the audio(4) interface, > and an -arts FLAVOR. yes, arts depends on esd, so you have to build > a non-flavored esd, then arts, then -arts FLAVORed esd, and then > install the FLAVORed esd with pkg_add -r -F installed esd-arts. after > all that, it has worked quite well in my testing.
Wow! But... What port version did you made diff from? <snip> |Index: Makefile |=================================================================== |RCS file: /home/cvs/OpenBSD/ports/audio/esound/Makefile,v |retrieving revision 1.39 |diff -u -r1.39 Makefile |--- Makefile 28 Oct 2006 10:30:41 -0000 1.39 |+++ Makefile 10 Mar 2008 20:53:14 -0000 -------------------------- Patching file Makefile using Plan A... Hunk #1 failed at 1. Hunk #2 succeeded at 19. 1 out of 2 hunks failed--saving rejects to Makefile.rej </snip> <snip> |Index: patches/patch-configure_in |=================================================================== |RCS file: patches/patch-configure_in |diff -N patches/patch-configure_in |--- patches/patch-configure_in 26 Jun 2004 04:38:33 -0000 1.4 |+++ /dev/null 1 Jan 1970 00:00:00 -0000 -------------------------- Patching file patches/patch-configure_in using Plan A... Empty context always matches. Hunk #1 failed at 0. 1 out of 1 hunks failed--saving rejects to patches/patch-configure_in.rej </snip> And even when those conflicts get resolved, "make patch" do not pass due to conflicts... As far as I recall, patch-config_h_in should be deleted? Nevermind, I: 1. built esd-0.2.38-arts (previous esd version was installed before) 2. built arts-3.5.8p0 3. installed arts-3.5.8p0 (while running KDE, he-he; "Sound system" was disabled, of course, during update) 4. installed esd-0.2.38-arts 5. tested it (results below) After hunting bugs (all of them were in my head), I finally get it working. Yay! xine apps lagging at start of playing almost gone (it's more my system problem, and I do not bother either), and artsd now consumes less CPU resources! aRts plays good at defaults, and ESD plays good now too, even without "-r 48000" in esd.conf. No crashes yet. -- Best wishes, Vadim Zhukov