> > http://pastebin.com/pJKA10Ub
> > You can compile: gcc ex.c -lm then run ./a.out | aplay -r 44100 -f FLOAT_LE
> What exactly does this program output?
> I can save the output of this
> program to a file, but then, what
> would I do with this file?
just 4s of audio, as float 32bits, endianness of your computer
(probably little endian; almost everyone is little endian today).
You can "aplay" the file, or convert to whatever audio format
that has a header (and if you want compression, lossless or not)
using whatever tool you like (sox, ffmpeg, ...)
Use the python code to directly have a wav file.
I think you don't really need the file though.
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-user
Received on Thu Oct 4 16:15:02 2012
This archive was generated by hypermail 2.1.8 : Thu Oct 04 2012 - 16:15:02 EEST