From: "Clemens Ladisch" <cladisch@fastmail.net>
To: william estrada <MrUmunhum@popdial.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: USB device gives wrong data?
Date: Mon, 22 Oct 2007 08:34:54 +0200 [thread overview]
Message-ID: <1193034894.13299.1217094833@webmail.messagingengine.com> (raw)
In-Reply-To: <47192528.9080403@popdial.com>
william estrada wrote:
> I think I have found a problem with the USB sound driver? It appears
> that the current drive returns a x'81' for silence but it should be a
> x'7f'.
The USB audio driver returns whatever data is sent by the device
> When I use my laptop's sound device and record without a mic, I get
> a file full of x'7f's. If I do the same with my cheap-o USB device
> I get a file full of x'81's.
For unsigned 8-bit samples, silence is x'80'.
Apparently, both devices have some DC offset and are quite noisy.
> I have written a recording program that I have a 'silence' filter
> that filters out segments of dead air. It works with the laptop's
> sound device but not the USB device. The filter works by remove
> x'7f's after allowing a selectable amount.
Your filter should be able to detect silence even when noise is present.
> Sorry for the multiple posting, not sure where is should have gone.
The the linux-audio-dev list, of course. ;-)
Regards,
Clemens
next prev parent reply other threads:[~2007-10-22 6:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-19 21:44 USB device gives wrong data? william estrada
2007-10-22 6:34 ` Clemens Ladisch [this message]
2007-10-22 16:58 ` william estrada
[not found] ` <471CD6BE.4090209-rB/de7zFuWlBDgjK7y7TUQ@public.gmane.org>
2007-10-22 23:05 ` [LAU] [alsa-devel] " James Cameron
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1193034894.13299.1217094833@webmail.messagingengine.com \
--to=cladisch@fastmail.net \
--cc=MrUmunhum@popdial.com \
--cc=alsa-devel@alsa-project.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox