Gentoo Archives: gentoo-user

From: maxim wexler <blissfix@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] tone generator
Date: Thu, 24 Jan 2008 23:06:42
Message-Id: 196017.20128.qm@web31715.mail.mud.yahoo.com
In Reply to: Re: [gentoo-user] tone generator by Willie Wong
1 >
2 > compile it, run it like
3 >
4 > ./a.out | play -t raw -s l -f s -c 1 -r 30000 -
5 >
6
7
8 This works, sort of. Sounds like a dentist drill going
9 in an out.
10
11 heathen@localhost ~/docs/c-prog $ ./a.out | aplay -t
12 raw -f cdr
13 Playing raw data 'stdin' : Signed 16 bit Big Endian,
14 Rate 44100 Hz, Stereo
15 ^@Aborted by signal Interrupt...
16
17 heathen@localhost ~/docs/c-prog $ ./a.out | aplay -t
18 raw -f dat
19 Playing raw data 'stdin' : Signed 16 bit Little
20 Endian, Rate 48000 Hz, Stereo
21 Aborted by signal Interrupt...
22
23 heathen@localhost ~/docs/c-prog $ ./a.out | aplay -t
24 raw -f cd
25 Playing raw data 'stdin' : Signed 16 bit Little
26 Endian, Rate 44100 Hz, Stereo
27 Aborted by signal Interrupt...
28
29 And there are a bunch of other formats under aplay
30 --help but nothing like a pure tone.
31
32 -mw
33
34
35
36
37
38 ____________________________________________________________________________________
39 Never miss a thing. Make Yahoo your home page.
40 http://www.yahoo.com/r/hs
41 --
42 gentoo-user@l.g.o mailing list

Replies

Subject Author
Re: [gentoo-user] tone generator Willie Wong <wwong@×××××××××.EDU>