LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-16-2013, 10:12 PM   #1
junior-s
Member
 
Registered: Apr 2013
Location: Brazil
Distribution: Arch Linux
Posts: 137

Rep: Reputation: Disabled
Increasing ALSA_BUFFER size?


I'm able to screencast now, but after a while I get
Code:
ALSA buffer xrun
I read a lot, and one of the solutions seems to be in the increase of the ALSA Buffer size.

I searched a lot on how to do it but most ways aren't possible on Arch.

So how do I increase it?

Regards.
 
Old 10-17-2013, 03:22 PM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,292
Blog Entries: 13

Rep: Reputation: 4366Reputation: 4366Reputation: 4366Reputation: 4366Reputation: 4366Reputation: 4366Reputation: 4366Reputation: 4366Reputation: 4366Reputation: 4366Reputation: 4366
That is in the ALSA sources in alsa-audio.h, ALSA_BUFFER_SIZE_MAX. You have to obtain the source for ALSA, change this value, recompile it, and then install it.
 
Old 10-17-2013, 07:53 PM   #3
junior-s
Member
 
Registered: Apr 2013
Location: Brazil
Distribution: Arch Linux
Posts: 137

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rtmistler View Post
That is in the ALSA sources in alsa-audio.h, ALSA_BUFFER_SIZE_MAX. You have to obtain the source for ALSA, change this value, recompile it, and then install it.
No other trick?
 
Old 10-18-2013, 08:00 AM   #4
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,292
Blog Entries: 13

Rep: Reputation: 4366Reputation: 4366Reputation: 4366Reputation: 4366Reputation: 4366Reputation: 4366Reputation: 4366Reputation: 4366Reputation: 4366Reputation: 4366Reputation: 4366
Sorry, there are no shortcuts. This value predetermines the size of buffers and other resources allocated by ALSA and can only be altered in the source code before compilation. It would be inadvisable for ALSA to not take all possible needed resources when it initializes, because part of ALSA is a driver. If there isn't enough memory at ALSA driver start, then the driver fails and there will be no sound capabilities provided by ALSA. If there is enough memory, then whatever memory required by the ALSA driver is taken at the load time and kept so that those buffers are always available. Although, there have been cases; like yours, where the buffer sizes are still insufficient. In those cases, the only option is to modify the source and recompile.
 
Old 10-18-2013, 04:30 PM   #5
junior-s
Member
 
Registered: Apr 2013
Location: Brazil
Distribution: Arch Linux
Posts: 137

Original Poster
Rep: Reputation: Disabled
Then I'll have to record with Audacity and after that join audio+video.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Increasing Heap Size pkdeep Linux - Newbie 1 06-20-2012 12:59 AM
increasing the size of / rahulkya Linux - Newbie 4 02-23-2010 04:50 PM
KDE - increasing menu text size, icon size? arcanem4 Fedora 1 12-06-2007 02:08 PM
About increasing Swap Size shipon_97 Linux - Newbie 2 05-29-2007 12:45 PM
Increasing X window size icarus Linux - General 1 08-09-2002 08:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration