From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JIB9e-0000k1-4m for garchives@archives.gentoo.org; Thu, 24 Jan 2008 23:06:42 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 911B2E052F; Thu, 24 Jan 2008 23:06:40 +0000 (UTC) Received: from web31715.mail.mud.yahoo.com (web31715.mail.mud.yahoo.com [68.142.201.195]) by pigeon.gentoo.org (Postfix) with SMTP id 2997DE052F for ; Thu, 24 Jan 2008 23:06:40 +0000 (UTC) Received: (qmail 20477 invoked by uid 60001); 24 Jan 2008 23:06:39 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=vFVo1lRgaFLzk8B2NfjFqry+qlw/aEoyRG9WYGsrNbj9xcO4Gb/6AP7gif8vzPlire1DcR4s2+GDUA3CFXqaTP2JK7dCtE51oNXJcuS5YITwh62ttrlaji7mu/YiCNzaQxUl8Y9IyR+aBrYKgjP4Z7m2IVOjm4Zpo36Z1mE8KGI=; X-YMail-OSG: 6f.g.KYVM1lUs5LT7eMdcPn0fWJrMj0cn8iUfKNsyt6uTilzEaU2YzY5saLid7FDjw-- Received: from [64.228.98.44] by web31715.mail.mud.yahoo.com via HTTP; Thu, 24 Jan 2008 15:06:38 PST Date: Thu, 24 Jan 2008 15:06:38 -0800 (PST) From: maxim wexler Subject: Re: [gentoo-user] tone generator To: gentoo-user@lists.gentoo.org In-Reply-To: <20080124202109.GA10245@math.princeton.edu> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Message-ID: <196017.20128.qm@web31715.mail.mud.yahoo.com> Content-Transfer-Encoding: quoted-printable X-Archives-Salt: c6d94e78-0e17-4abf-83c2-98b45b4bb493 X-Archives-Hash: 025e9f36c590e9708c5f49e0848608c2 >=20 > compile it, run it like=20 >=20 > ./a.out | play -t raw -s l -f s -c 1 -r 30000 - >=20 This works, sort of. Sounds like a dentist drill going in an out.=20 heathen@localhost ~/docs/c-prog $ ./a.out | aplay -t raw -f cdr Playing raw data 'stdin' : Signed 16 bit Big Endian, Rate 44100 Hz, Stereo ^@Aborted by signal Interrupt... heathen@localhost ~/docs/c-prog $ ./a.out | aplay -t raw -f dat Playing raw data 'stdin' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo Aborted by signal Interrupt... heathen@localhost ~/docs/c-prog $ ./a.out | aplay -t raw -f cd Playing raw data 'stdin' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo Aborted by signal Interrupt... And there are a bunch of other formats under aplay --help but nothing like a pure tone. -mw ___________________________________________________________________= _________________ Never miss a thing. Make Yahoo your home page.=20 http://www.yahoo.com/r/hs --=20 gentoo-user@lists.gentoo.org mailing list