From: "Grace Baldonasa" Subject: Re: question about sampling rate Date: Tue, 19 Sep 2006 17:36:23 +0800 Message-ID: <7034e7b50609190236o5852e98aqa544299cf8f9feb4@mail.gmail.com> References: <54799.217.150.108.178.1152694606.squirrel@newgolddream.dyndns.info> <7034e7b50608091945r39ddaeeevda675f05251be9cb@mail.gmail.com> <1155315961.10237.268179763@webmail.messagingengine.com> <7034e7b50608302232w2b7279b3qf66acaeca54f1e2b@mail.gmail.com> <1157012237.11592.269833216@webmail.messagingengine.com> <7034e7b50608310122na613dcesf642709d586fbde5@mail.gmail.com> <1157014147.13855.269835275@webmail.messagingengine.com> <7034e7b50608310210h59217352tb99c8189b228a4e3@mail.gmail.com> <7034e7b50608310250w77fe2d21va4b0593b66f5d9d8@mail.gmail.com> <1157021412.24248.269842218@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1880438372==" Return-path: Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.182]) by alsa.jcu.cz (ALSA's E-mail Delivery System) with ESMTP id 8569724D for ; Tue, 19 Sep 2006 11:36:27 +0200 (MEST) Received: by py-out-1112.google.com with SMTP id c59so5790358pyc for ; Tue, 19 Sep 2006 02:36:24 -0700 (PDT) In-Reply-To: <1157021412.24248.269842218@webmail.messagingengine.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@lists.sourceforge.net Errors-To: alsa-devel-bounces@lists.sourceforge.net To: Clemens Ladisch Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org --===============1880438372== Content-Type: multipart/alternative; boundary="----=_Part_3924_13279367.1158658583782" ------=_Part_3924_13279367.1158658583782 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, Do you know of any means how to test the streaming IN raw data. I am attaching a headset and could only test the speaker or streaming OUT. I need to test as well the streaming IN. I am writing every single byte I received into a buffer, and after some period, I am streaming it out again, but I can only hear noise and no clarity in the quality of the audio captured. My captured settings are as follows: Sampling Freq = 48000 Channel = 1 Sampling Bit = 16 when i streamed it out, the playback settings are as follows: Sampling Freq = 48000 Channel = 2 Sampling Bit = 16 I forcefully change the channel number to 2, would this cause any problem? Any advise can be deeply appreciated. Thanks. regards, Grace On 8/31/06, Clemens Ladisch wrote: > > Grace Baldonasa wrote: > > Got another question, following to my previos emails, do I have to > adjust my > > streaming size since the sampling freq used when audio data was > converted is > > not supported by the speaker? > > ALSA will allow only those sample rates/formats that the driver says it > supports (in the snd_pcm_hardware structure, and with any constraints > set in the open callback). > > > HTH > Clemens > ------=_Part_3924_13279367.1158658583782 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Hi,
 
Do you know of any means how to test the streaming IN raw data. I am attaching a headset and could only test the speaker or streaming OUT. I need to test as well the streaming IN.
 
I am writing every single byte I received into a buffer, and after some period,  I am streaming it out again, but I can only hear noise and no clarity in the quality of the audio captured.
 
My captured settings are as follows:
Sampling Freq = 48000
Channel = 1
Sampling Bit = 16
 
when i streamed it out, the playback settings are as follows:
Sampling Freq = 48000
Channel = 2
Sampling Bit = 16
 
I forcefully change the channel number to 2, would this cause any problem?
Any advise can be deeply appreciated.
Thanks.
 
regards,
 
Grace


 
On 8/31/06, Clemens Ladisch <cladisch@fastmail.net> wrote:
Grace Baldonasa wrote:
> Got another question, following to my previos emails, do I have to adjust my
> streaming size since the sampling freq used when audio data was converted is
> not supported by the speaker?

ALSA will allow only those sample rates/formats that the driver says it
supports (in the snd_pcm_hardware structure, and with any constraints
set in the open callback).


HTH
Clemens

------=_Part_3924_13279367.1158658583782-- --===============1880438372== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV --===============1880438372== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Alsa-devel mailing list Alsa-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-devel --===============1880438372==--