From: "Grace Baldonasa" Subject: Re: question about sampling rate Date: Mon, 2 Oct 2006 11:53:14 +0800 Message-ID: <7034e7b50610012053r30cfedb3p3760bb5b4783b388@mail.gmail.com> References: <54799.217.150.108.178.1152694606.squirrel@newgolddream.dyndns.info> <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> <7034e7b50609190236o5852e98aqa544299cf8f9feb4@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2045446548==" Return-path: Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.181]) by alsa.jcu.cz (ALSA's E-mail Delivery System) with ESMTP id CEEE0179 for ; Mon, 2 Oct 2006 05:53:15 +0200 (MEST) Received: by py-out-1112.google.com with SMTP id c59so2246962pyc for ; Sun, 01 Oct 2006 20:53:14 -0700 (PDT) In-Reply-To: <7034e7b50609190236o5852e98aqa544299cf8f9feb4@mail.gmail.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 --===============2045446548== Content-Type: multipart/alternative; boundary="----=_Part_74287_11630513.1159761194387" ------=_Part_74287_11630513.1159761194387 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Clemens, Can I directly stream the recorded data as playback without going for any conversion or anything to the captured data? I am hearing pure noise if I am streaming back directly the recorded sound that I captured. Is this an expected behaviour? Really appreciate any advice. Thanks, grace On 9/19/06, Grace Baldonasa wrote: > > 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_74287_11630513.1159761194387 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Hi Clemens,
 
Can I directly stream the recorded data as playback without going for any conversion or anything to the captured data?
 
I am hearing pure  noise if I am streaming back directly the recorded sound that I captured. Is this an expected behaviour?
 
Really appreciate any advice.
 
Thanks,
 
grace

 
On 9/19/06, Grace Baldonasa <gbaldona@gmail.com> wrote:
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_74287_11630513.1159761194387-- --===============2045446548== 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 --===============2045446548== 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 --===============2045446548==--