From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Subject: Re: [9fans] Line-In From: anothy@cosym.net MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Message-Id: <20020226152718.CFE7C19980@mail.cse.psu.edu> Date: Tue, 26 Feb 2002 10:27:09 -0500 Topicbox-Message-UUID: 5655a108-eaca-11e9-9e20-41e7f4b1d025 from audio(3): Audio data is a sequence of stereo samples, left sample first. Each sample is a 16 bit little-endian two's complement integer; the default sampling rate is 44.1 kHz. i'm not familiar with the term "cdr" as an audio format, but i'm guessing you're refering to the audio format on a CD. that's PCM, and yes, it's the same format you read/write on /dev/audio. // I've tried using lame to convert P9 /dev/audio data to mp3... one step at a time. can you get data from /dev/audio to start with? just try 'cat /dev/audio > /tmp/foo', yell into the mic some, and then kill the cat. the contents of /tmp/foo should be PCM audio, suitable for 'cat /tmp/foo > /dev/audio'. assuming you're getting audio data, are you sure lame is working? i had issues with it producing valid but garbage mp3 files. for my experiences, take a look at http://9srv.net/mpeg/ - the summary is that i use BladeEnc quite succesfully. the single line to compile it, and a binary in case you have problems, are available there. ア