Hi, I opened "surround51" PCM device and set the sampling rate to 48000, S16_LE format. I requested 500000 usec (0.5 sec) of buffer time, but I got back only 113770 usec. (equals to 65532 bytes.) Is there a way I can get a bigger buffer size? Does it depend on the driver or ALSA can typically provide more? I used snd_pcm_writei() in blocking mode, transferring 28800 bytes (2400 frames) at a time. After two writes (buffer about full), the third write blocked for 95 msec. Soon after, the function blocked for 128 msec, caused XRUN. Is snd_pcm_writei() in blocking mode suitable for 5.1 channels playback without XRUNs? Why snd_pcm_writei() didn't unblock immediately when snd_pcm_avail_update() returned 5044 frames (105 msec.) available? I'm going to try a non-blocking snd_pcm_writei() solution. Do you think it is the answer to the XRUN problem? Thank you very much. -- Daniel Yek ------------------------------------------------------------------------- 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