From owner-freebsd-multimedia@FreeBSD.ORG Sun Jan 15 09:25:40 2006 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 7FB1216A41F for ; Sun, 15 Jan 2006 09:25:40 +0000 (GMT) (envelope-from ariff@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3CC5843D45; Sun, 15 Jan 2006 09:25:40 +0000 (GMT) (envelope-from ariff@FreeBSD.org) Received: from misaki (root@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with SMTP id k0F9PbaW081986; Sun, 15 Jan 2006 09:25:39 GMT (envelope-from ariff@FreeBSD.org) Date: Sun, 15 Jan 2006 17:25:13 +0800 From: Ariff Abdullah To: "Michael W. Oliver" Message-Id: <20060115172513.3545d70a.ariff@FreeBSD.org> In-Reply-To: <200601150355.02939.michael@gargantuan.com> References: <200601150355.02939.michael@gargantuan.com> Organization: FreeBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Sun__15_Jan_2006_17_25_13_+0800_NbmeA.RLZMWNmJmy" Cc: multimedia@FreeBSD.org Subject: Re: cwpcm straight to dsp is way fast 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: Sun, 15 Jan 2006 09:25:40 -0000 --Signature=_Sun__15_Jan_2006_17_25_13_+0800_NbmeA.RLZMWNmJmy Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, 15 Jan 2006 03:54:56 -0500 "Michael W. Oliver" wrote: > Hey guys, >=20 > I am using cwpcm to generate morse, and when using this: >=20 > echo "sos sos sos" | cwpcm -w 20 -F 24 -f 800 | sox -r 8000 -bu -t > raw - sos.wav lowpass 1500 >=20 > I get a wav file that sounds perfect. However, when using this: >=20 > echo "sos sos sos" | cwpcm -w 20 -F 24 -f 800 >/dev/dsp > -or- > echo "sos sos sos" | cwpcm -w 20 -F 24 -f 800 >sos.raw && cat > sos.raw >/dev/dsp >=20 > I get horrible noise from speakers. I am _guessing_ that it has > something to do with the rate at which dsp is processing that raw > data, but I don't know how to fix it so that I can just play the > code without creating the wav file. >=20 Since you have sox, how about something like this: echo "sos sos sos" | cwpcm -w 20 -F 24 -f 800 | \ play -b -u -r 8000 -t raw - -- Ariff Abdullah FreeBSD --Signature=_Sun__15_Jan_2006_17_25_13_+0800_NbmeA.RLZMWNmJmy Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDyhT9lr+deMUwTNoRAsuKAKDS4ZV+LqlkVfYjNAB1JYUoIBEo1gCgsVm2 hnvt2U79HGeVu435c3U8hDU= =eksV -----END PGP SIGNATURE----- --Signature=_Sun__15_Jan_2006_17_25_13_+0800_NbmeA.RLZMWNmJmy--