From owner-freebsd-questions Sun Apr 7 4: 0: 8 2002 Delivered-To: freebsd-questions@freebsd.org Received: from blue.dream.vg (pl32.katowice.cvx.ppp.tpnet.pl [217.99.65.32]) by hub.freebsd.org (Postfix) with ESMTP id 57A3537B427; Sun, 7 Apr 2002 03:59:39 -0700 (PDT) Received: from cartero by MetBSD.pl with local (Exim 3.34 #2 (Debian)) id 16uAJD-0000Ij-00; Sun, 07 Apr 2002 12:54:07 +0200 Date: Sun, 7 Apr 2002 12:54:07 +0200 From: Light To: freebsd-questions@FreeBSD.org Cc: freebsd-hackers@FreeBSD.ORG Subject: Problem with big range input/output Message-ID: <20020406224529.A393@bell-flower> Reply-To: fbsddisc@konto.pl Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i User-Agent: Mutt/1.2.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello. I have problem with recording sound and compressing it with lame. I guess, that this may be a kernel tuning problem. I've requested for help to many people, but nobody can help me. I'm posting here expecting here are people who know very good internals of FreeBSD. Forgive me, but it is very urgent problem for me, I'm archiving radio programs on PC. When I do: $ mkfifo file.wav $ rec -c 2 -s w -d /dev/dspW -r 44100 file.wav & $ lame --preset cd file.wav file.mp3 sound recorded by lame is strange; small parts of sound are lost, and I can hear something like quiet beating. Recording with rec (to regular file - no FIFO) also doesn't looks good. It loads CPU till 98% and sound quality is very bad. First 3 secs of sound are great, but after 3 secs recorded .wav is like divided and sound strange. My question is: how to get the best performance of FIFO's in kernel? Is the snd_emu10k1 driver complete and working? What I sould change with sysctl to get sound recording working good? Are there any options in LINT which may help to enlarge buffers and pci performance in this case? My card: SB Live!, processor: PIII 450 MHz, RAM 128MB Regards, light To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message