From owner-freebsd-multimedia@FreeBSD.ORG Wed Sep 21 09:17:58 2005 Return-Path: X-Original-To: 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 2EEBF16A420 for ; Wed, 21 Sep 2005 09:17:58 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2BC8F43D45 for ; Wed, 21 Sep 2005 09:17:55 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 322976CC30; Wed, 21 Sep 2005 17:26:15 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (tomoyo.MyBSD.org.my [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14995-01; Wed, 21 Sep 2005 17:26:14 +0800 (MYT) Received: from kasumi.MyBSD.org.my (unknown [218.111.24.109]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 75F906CC2E; Wed, 21 Sep 2005 17:26:08 +0800 (MYT) Date: Wed, 21 Sep 2005 17:17:40 +0800 From: Ariff Abdullah To: jos@catnook.com Message-Id: <20050921171740.62f09414.skywizard@MyBSD.org.my> In-Reply-To: <20050921051839.GA39942@lizzy.catnook.local> References: <20050917054421.GA93917@lizzy.catnook.local> <20050921051839.GA39942@lizzy.catnook.local> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-antivirus-mail-gateway at TOMOYO.MYBSD.ORG.MY Cc: multimedia@freebsd.org Subject: Re: Curious sound playback slowdown 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, 21 Sep 2005 09:17:58 -0000 On Tue, 20 Sep 2005 22:18:17 -0700 Jos Backus wrote: > On Fri, Sep 16, 2005 at 10:43:59PM -0701, Jos Backus wrote: > ... > > 92231 firefox-bin CALL ioctl(0x13,SNDCTL_DSP_STEREO,0xbfbf6ca0) > > 92231 firefox-bin RET ioctl 0 > > 92231 firefox-bin CALL ioctl(0x13,SNDCTL_DSP_SPEED,0xbfbf6cdc) > > 92231 firefox-bin RET ioctl 0 > > 92231 firefox-bin CALL > > ioctl(0x13,SNDCTL_DSP_SETFRAGMENT,0xbfbf6d08) 92231 firefox-bin RET > > ioctl 0 > > 92231 firefox-bin CALL ioctl(0x13,SNDCTL_DSP_GETCAPS,0xbfbf6d04) > > 92231 firefox-bin RET ioctl 0 > > 92231 firefox-bin CALL fcntl(0x13,0x4,0) > > 92231 firefox-bin RET fcntl 0 > > 92231 firefox-bin CALL close(0x13) > ... > > It's unclear to me why the SNDCTL_DSP_SPEED ioctl is stuffing the > wrong value into the device. Running the program below as > `set-samplerate 22050' appears to mimic the change the Flash plugin > effects. Running `set-samplerate' restores sound pitch to a normal > value. So I have a workaround for now at least. > Luckily I have this card and do realize this problem. That's because flash plugin trying to set speed for recording that differ from playback speed. I will examine this issue later this day. -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4)