Re: aplay/arecord and rates/bits on usb soundcard

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

 



On Wed, 24 Apr 2013, Daniel Mack wrote:

> On 24.04.2013 19:04, Bill Unruh wrote:
>> I have a Behringer uca222 soundcard, which handles 44100, 48000 and 16 bit
>> output/input. However if I run arecord, or aplay with "illegal" rates or bits,
>> they simply proceed as if nothing is wrong.
>> Eg
>> arecord -D default:CARD=CODEC /tmp/t -r96000 -c2 /tmp/t -N -d 2 -t raw -f S24_BE
>
> This is because by default, the plughw plugin will take over and do the
> sample rate and bit depth conversion for you. If you use "-D hw:X", ALSA
> will only allow formats that are supported by the hardware natively.

Well, it seems to not disallow it, but rather sets the card to the nearest
valid rate.
That is not necessarily what I want, but ok, I understand.
It does return an error for the wrong sample format.

>
>
> Best,
> Daniel
>

-- 
William G. Unruh   |  Canadian Institute for|     Tel: +1(604)822-3273
Physics&Astronomy  |     Advanced Research  |     Fax: +1(604)822-5324
UBC, Vancouver,BC  |   Program in Cosmology |     unruh@xxxxxxxxxxxxxx
Canada V6T 1Z1     |      and Gravity       |  www.theory.physics.ubc.ca/

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user




[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux