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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-audio-dev@...>
Date: Tuesday, February 1, 2011 - 5:55 am

--0016e640cdc0c687e2049b322d82
Content-Type: text/plain; charset=ISO-8859-1

Hi All,

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. Looking at
the raw data it looks like there is a lot of duplication of data? is this
common for the audio input device? if so what kind of encoding is it (e.g
with some specific redundancy built in)?

thanks
farhan

--0016e640cdc0c687e2049b322d82
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi All,=A0I am trying to read data from a usb microphon=
e and using the pretty standard method of using ioctl's to setup the sa=
mpling rate, channels, bits and block size . This all works so the device i=
s correctly setup. I then use "read" to read samples from the dev=
ice which shows up as /dev/dsp1. I get a lot more samples from this read co=
mmand in one second of recording than the set sample rate. E.g. if i set 10=
Khz on one run i got 269312 samples. Looking at the raw data it looks like =
there is a lot of duplication of data? is this common for the audio input d=
evice? if so what kind of encoding is it (e.g with some specific redundancy=
built in)?=A0
thanksfarhan

--0016e640cdc0c687e2049b322d82--

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[LAD] incorrect number of samples reading from /dev/dsp1, farhan baluch, (Tue Feb 1, 5:55 am)
Re: [LAD] incorrect number of samples reading from /dev/dsp1, Sampo Savolainen, (Tue Feb 1, 10:37 am)
Re: [LAD] incorrect number of samples reading from /dev/dsp1, Gordon JC Pearce, (Tue Feb 1, 7:49 am)