[LAD] incorrect number of samples reading from /dev/dsp1

Paul Davis paul at linuxaudiosystems.com
Tue Feb 1 12:39:14 UTC 2011


On Tue, Feb 1, 2011 at 2:57 AM, Clemens Ladisch <clemens at ladisch.de> wrote:
> Gordon JC Pearce wrote:
>> On Mon, 2011-01-31 at 21:55 -0800, farhan baluch wrote:
>> > I am trying to read data from a usb microphone and using the pretty
>> > standard method of using ioctl's to setup the sampling rate, channels,
>> > bits and block size . This all works so the device is correctly setup.
>> > I then use "read" to read samples from the device which shows up
>> > as /dev/dsp1. I get a lot more samples from this read command in one
>> > second of recording than the set sample rate. E.g. if i set 10Khz on
>> > one run i got 269312 samples.
>>
>> OSS has been obsolete for over a decade.  Don't use it.
>
> But it's still supported.

Its no longer supported by at least two distributions, AFAIK.



More information about the Linux-audio-dev mailing list