From owner-freebsd-multimedia@FreeBSD.ORG Sat Jun 11 16:12:27 2005 Return-Path: X-Original-To: freebsd-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 A3A7316A41C for ; Sat, 11 Jun 2005 16:12:27 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (duke.voidnetwork.com [202.157.186.223]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4412E43D1D for ; Sat, 11 Jun 2005 16:12:26 +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 8FF776CC73; Sun, 12 Jun 2005 00:15:52 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (duke.voidnetwork.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13642-01; Sun, 12 Jun 2005 00:15:51 +0800 (MYT) Received: from kasumi.MyBSD.org.my (unknown [60.48.107.7]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 792626CC3A; Sun, 12 Jun 2005 00:15:50 +0800 (MYT) Date: Sun, 12 Jun 2005 00:12:21 +0800 From: Ariff Abdullah To: freebsd-multimedia@freebsd.org Message-Id: <20050612001221.6824b42b.skywizard@MyBSD.org.my> 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: mat@cnd.mcgill.ca Subject: New pcm feeder_rate implementation 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: Sat, 11 Jun 2005 16:12:27 -0000 Alright folks, here is the new, or should I say *much* improved feeder_rate implementation. This new implementation try to address what the older one failed to do: *insane* / wide range rates support so you can play your super-ridiculous 1024000Hz ultrasonic mosquito repeller files *on the fly* without having to resample just to satisfy 4000 - 48000hz limit. The code also much shorter / cleaner, still preserving good old bits from Orion's implementation. The file is designed to be a drop in replacement for RELENG_5 / HEAD and you can get it at: http://staff.mybsd.org.my/skywizard/FreeBSD/sound/ feeder_rate.c : mandatory vchan.c : mandatory for those having fixed rate AC97 soundcard, or simply want to liberate themselves from 44100 vchan limit. Enjoy your ultra-insane sound, something like mplayer -af resample=1024000:0:2 should do that. As usual, feedback / comments are welcomed. -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4)