Re: question about sampling rate

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx> 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@xxxxxxxxxxxx> 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


-------------------------------------------------------------------------
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
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux