Re: [ecasound] recording from btaudio

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [ecasound] recording from btaudio
From: Kai Vehmanen (k_AT_eca.cx)
Date: Fri Jul 11 2003 - 00:33:06 EEST


On Sat, 7 Jun 2003, Hirendra Hindocha wrote:

> Any tips on how I can record using ecasound off of /dev/dsp3 ?
> I'm using ecasound 2.2.2 on RH8.0. The TV Tuner card is WinTV dbx
> 401 and I'm using the btaudio module (which provides the
> /dev/dsp{3,4} devices).
[...]
> but I'm unable to use ecasound to record off dsp3.
[...]
> ecasound -C -z:db,1000000 -b:4096 -t:60 -f s16_le,2ch,32000 -i:/dev/dsp3 -o:/dev/dsp
[...]
> (audioio-oss) Warning: OSS-device doesn't support
> SNDCTL_DSP_SETTRIGGER!

You can get rid of this error by compiling ecasound with
"./configure --disable-osstrigger".

> (eca-control) ERROR: Connecting chainsetup failed: "Enabling
> chainsetup: AUDIOIO-OSS: general OSS-error SNDCTL_DSP_SETFRAGMENT"

It seems that the /dev/dsp3 does not support setting a custom
buffersize. You could try the following patch to
ecasound/libecasound/audioio-oss.cpp:

--cut--
- if (::ioctl(audio_fd, SNDCTL_DSP_SETFRAGMENT, &fragsize)==-1)
- throw(SETUP_ERROR(SETUP_ERROR::buffersize, "AUDIOIO-OSS: general OSS-error SNDCTL_DSP_SETFRAGMENT"));
+ if (::ioctl(audio_fd, SNDCTL_DSP_SETFRAGMENT, &fragsize)==-1)
+ ECA_LOG_MSG(ECA_LOGGER::info, "(audioio-oss) Warning: OSS-device doesn't support SNDCTL_DSP_SETFRAGMENT!");
--cut--

In other words, just print a warning if setting the fragment size
is not supported. Let me know if this works and I'll add it to
CVS-tree.

-- 
 http://www.eca.cx
 Audio software for Linux!


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Fri Jul 11 2003 - 00:32:30 EEST