Is hw buffersize configurable from .asound.rc?

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

 



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