On 2/15/07, Lee Revell <rlrevell@xxxxxxxxxxx> wrote: > On 2/15/07, el hombre <mark473@xxxxxxxxx> wrote: > > 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: > > This should be set by the application, or the app should be prepared > to deal with whatever buffer size it gets from ALSA. > > What problem are you trying to solve? > > Lee > I'm having a problem with wierd noises from mplayer (the noises sound like short bursts of machine-gun fire - they really don't go with Brahms' 2nd Piano Concerto!) and I thought that it might be caused by buffer-underrun. Unfortunately, mplayer appears to have no option to control buffer-size (the -abs switch only applies to oss output) so I was wondering whether I could just edit my .asoundrc rather than recompiling the binary. Interestingly, I've just discovered that lastfm's embedded flash player suffers from the same problem. Perhaps it's not mplayer's fault after all (time to do some more digging)... Jaime PS the card's a Cirrus Logic CS 4614/22/24 (snd_cs46xx) ------------------------------------------------------------------------- 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