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: Hirendra Hindocha (hiren_hindocha_AT_comcast.net)
Date: Mon Sep 08 2003 - 01:56:00 EEST


On Fri, Jul 11, 2003 at 12:33:06AM +0300, Kai Vehmanen wrote:
> 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.

Kai,

The above patch did the trick. I was able to successfully record
off of btaudio (WinTv 401 dbx)

Regards,

-- 
Hiren


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

This archive was generated by hypermail 2b28 : Mon Sep 08 2003 - 01:49:22 EEST