Skip to content
Browse files

AE: ALSA: Try to get a minimum of 4 periods per buffer

  • Loading branch information...
1 parent 95ea48d commit 39f2487881b6fa2d52c58f7b2452420efc711cd5 @anssih anssih committed Mar 11, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 xbmc/cores/AudioEngine/Sinks/AESinkALSA.cpp
View
4 xbmc/cores/AudioEngine/Sinks/AESinkALSA.cpp
@@ -346,9 +346,9 @@ bool CAESinkALSA::InitializeHW(AEAudioFormat &format)
/*
According to upstream we should set buffer size first - so make sure it is always at least
- double of period size to not get underruns
+ 4x period size to not get underruns (some systems seem to have issues with only 2 periods)
*/
- periodSize = std::min(periodSize, bufferSize / 2);
+ periodSize = std::min(periodSize, bufferSize / 4);
CLog::Log(LOGDEBUG, "CAESinkALSA::InitializeHW - Request: periodSize %lu, bufferSize %lu", periodSize, bufferSize);

0 comments on commit 39f2487

Please sign in to comment.
Something went wrong with that request. Please try again.