Re: Is hw buffersize configurable from .asound.rc?

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

 



Hi!

You are getting the error message because the hw plugin doesn't have the
option to set the buffer size (that what it's saying :-P). You do have
the possibility to set the buffer size with the dmix plugin.

http://www.alsa-project.org/alsa-doc/alsa-lib/pcm_plugins.html#pcm_plugins_dmix
http://alsa.opensrc.org/Dmix

I used this option with my sound card, but I had to use dmix for
hardware mixing anyway. I don't know whether you have to use dmix, maybe
you can do it with the slave plugin, too. The documentation looks like
if you could, I just didn't use it yet.

http://www.alsa-project.org/alsa-doc/alsa-lib/pcm_plugins.html#pcm_plugins_slave

Hope this helps...

Regards, Ingo


el hombre schrieb:
> Hi.
> 
> If I run:
> cat /dev/urandom | aplay -f cd --buffer-size=1024
> then the hardware buffer size is 1024 - I can see this using:
> grep buffer_size /proc/asound/card0/pcm0p/sub0/hw_params
> 
> If I run:
> cat /dev/urandom | aplay -f cd --buffer-size=8192
> then the hardware buffer size is 8192 - again I can see this using:
> grep buffer_size /proc/asound/card0/pcm0p/sub0/hw_params
> 
> This is only possible because aplay has an option to change the
> requested buffer size. Some applications don't have this option.
> 
> Is there a way to change the hw buffer size by changing some
> parameter in my .asoundrc? I've tried using the following .asoundrc:
> 
> pcm.!default {
>   type hw
>   card 0
>   device 0
>   buffer_size 4096
> }
> 
> but I get an "Unknown field buffer_size" error message from aplay.
> 
> Thank you.


-------------------------------------------------------------------------
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-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