From owner-freebsd-multimedia Wed Jan 2 18:19:20 2002 Delivered-To: freebsd-multimedia@freebsd.org Received: from kumr.lns.com (kumr.lns.com [63.198.122.138]) by hub.freebsd.org (Postfix) with ESMTP id BF26037B419 for ; Wed, 2 Jan 2002 18:19:15 -0800 (PST) Received: (from pozar@localhost) by kumr.lns.com (8.11.6/8.9.3) id g032JAA13407; Wed, 2 Jan 2002 18:19:10 -0800 (PST) (envelope-from pozar) Date: Wed, 2 Jan 2002 18:19:10 -0800 From: Tim Pozar To: Jim Durham Cc: freebsd-multimedia@FreeBSD.ORG Subject: Re: KDE Sound problems Message-ID: <20020102181909.B7800@lns.com> References: <200201030150.g031oHE24254@w2xo.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200201030150.g031oHE24254@w2xo.pgh.pa.us>; from durham@jcdurham.com on Wed, Jan 02, 2002 at 08:50:20PM -0500 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Wed, Jan 02, 2002 at 08:50:20PM -0500, Jim Durham wrote: > I've noticed a couple of problems with sound on KDE on FreeBSD and I was > wondering if anyone else was having these problems so that I could file a > bug report with more evidence. > > I have a sound recording program I wrote several years ago to record from > the soundcard to a raw binary file. This works fine with my old > Soundblaster16 on 4.4-Stable. On my laptop, with an ESS-Maestro3, > I seem to be missing samples. The recorded file is higher in pitch than > the original recording, contains "clicks" and records longer than the > requested time; IE, if you ask for a 10 second duration, you get 14 or 15 > seconds duration. Since the program counts duration by calculating how > many samples it needs to get from the sound card at the requested scan > rate, it sounds like it is not able to read the samples at the requested > rate, therefore it takes longer and compresses the recording, time-wise, > making the pitch higher. I tried this same thing with 'gramofile' from > ports and it does the same . I wrote a simple C program that does something like what you describe in it opens /dev/dsp*, sets sample rate, etc and then starts to spit this out as PCM data via STDOUT. It works under KDE's artsd. You can check it out at: http://www.lns.com/papers/catdsp/ Tim -- Snail: Tim Pozar / LNS / 1978 45th Ave / San Francisco CA 94116 / USA POTS: +1 415 665 3790 Radio: KC6GNJ / KAE6247 "It's a damn poor mind that can only think of one way to spell a word." - Andrew Jackson "What is wanted is not the will to believe, but the will to find out, which is the exact opposite." - Bertrand Russell, "Skeptical_Essays" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message