From owner-freebsd-questions@FreeBSD.ORG Wed Oct 1 09:12:44 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ACEF616A4B3 for ; Wed, 1 Oct 2003 09:12:44 -0700 (PDT) Received: from lilzmailfe01.liwest.at (lilzmailfe01.liwest.at [212.33.55.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 89BD243FEC for ; Wed, 1 Oct 2003 09:12:35 -0700 (PDT) (envelope-from dgw@liwest.at) Received: from cm58-27.liwest.at ([212.33.58.27]) by lilzmailfe01.liwest.at with esmtp (Exim 4.14) id 1A4jaP-0008Vn-K5; Wed, 01 Oct 2003 18:12:21 +0200 From: Daniela To: "Paul Hamilton" Date: Wed, 1 Oct 2003 18:09:03 +0000 User-Agent: KMail/1.5.3 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200310011809.03811.dgw@liwest.at> cc: Freebsd-Questions Subject: Re: Problems with audio recording X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Oct 2003 16:12:44 -0000 On Monday 29 September 2003 23:35, Paul Hamilton wrote: > Hi Daniela, > > Here are a few notes I have made on playing with audio in/out. I mainly > use this to record radio programs, for play back at a later time. The > radio is plugged into 'LineIn', and I use Ecasound to handle the recording > and converting to a MP3 file. Works a treat. Read the indepth 'man' files > for more info on each package/program. > > Cheers, > > Paul Hamilton > > > > > http://eca.cx/ ; ECASOUND Web site > > Add to kernel: "device pcm" > cd /dev > ./MAKEDEV snd0 > cat /dev/sndstat ;to see if it's configured properly > > pkg_add ecasound-1.8.5d15 > pkg_add nmixer-2.0b17 > pkg_add mpg123-x.x.x > pkg_add festival-x.x.x : text to voice sythasizer > > Sound Recording:- > > Set nmixer > Set Mic to 3 > Set rec to 3 > Run: ecasound -I:/dev/dsp0 -o test.wav Thanks, works all well until here. It still doesn't record anything. I guess it's either the soundcard or I'm too stupid for it :-( Is it really /dev/dsp0? Below is the output from ecasound, maybe it helps (I installed from source with debug symbols). The file test.wav is there after running ecasound, but there's only silence in it. Regards, Daniela **************************************************************************** * ecasound v2.2.4 (C) 1997-2003 Kai Vehmanen **************************************************************************** - [ Session created ] ------------------------------------------------------ - [ Chainsetup created (cmdline) ] ----------------------------------------- (libkvutils) kvu_rtcaps: warning! POSIX_MEMLOCK not supported - [ Connecting chainsetup ] ------------------------------------------------ (eca-chainsetup) 'rt' buffering mode selected. (eca-chainsetup) Audio object "/dev/dsp", mode "read". (audio-io) Format: s16_le, channels 2, srate 44100, interleaved. Warning: DBC_CHECK failed - "sizeof(long int) == sizeof(off_t)", eca-fileio-stream.cpp, 159. Warning: DBC_CHECK failed - "sizeof(long int) == sizeof(off_t)", eca-fileio-stream.cpp, 159. Warning: DBC_CHECK failed - "sizeof(long int) == sizeof(off_t)", eca-fileio-stream.cpp, 159. Warning: DBC_CHECK failed - "sizeof(long int) == sizeof(off_t)", eca-fileio-stream.cpp, 159. Warning: DBC_CHECK failed - "sizeof(long int) == sizeof(off_t)", eca-fileio-stream.cpp, 159. (eca-chainsetup) Audio object "test.wav", mode "read/write". (audio-io) Format: s16_le, channels 2, srate 44100, interleaved. - [ Chainsetup connected ] ------------------------------------------------- (eca-controller) Connected chainsetup: "command-line-setup". - [ Controller/Starting batch processing ] --------------------------------- - [ Engine init - Driver start ] ------------------------------------------- (eca-engine) Prefilling i/o buffers. ^C- [ Controller/Processing stopped (cond) ] --------------------------------- - [ Engine exiting ] ------------------------------------------------------- (eca-controller) Disconnecting chainsetup: "command-line-setup". Warning: DBC_CHECK failed - "sizeof(long int) == sizeof(off_t)", eca-fileio-stream.cpp, 159. Warning: DBC_CHECK failed - "sizeof(long int) == sizeof(off_t)", eca-fileio-stream.cpp, 159. Warning: DBC_CHECK failed - "sizeof(long int) == sizeof(off_t)", eca-fileio-stream.cpp, 159. Warning: DBC_CHECK failed - "sizeof(long int) == sizeof(off_t)", eca-fileio-stream.cpp, 159. Warning: DBC_CHECK failed - "sizeof(long int) == sizeof(off_t)", eca-fileio-stream.cpp, 159. Warning: DBC_CHECK failed - "sizeof(long int) == sizeof(off_t)", eca-fileio-stream.cpp, 159. Warning: DBC_CHECK failed - "sizeof(long int) == sizeof(off_t)", eca-fileio-stream.cpp, 159. Warning: DBC_CHECK failed - "sizeof(long int) == sizeof(off_t)", eca-fileio-stream.cpp, 159. - [ Chainsetup disconnected ] ----------------------------------------------