Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 198849 | Differences between
and this patch

Collapse All | Expand All

(-)XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp (-1 / +1 lines)
Lines 200-206 Link Here
200
  nErr = snd_pcm_hw_params_set_period_size_near(m_pPlayHandle, hw_params, &m_maxFrames, 0);
200
  nErr = snd_pcm_hw_params_set_period_size_near(m_pPlayHandle, hw_params, &m_maxFrames, 0);
201
  CHECK_ALSA_RETURN(LOGERROR,"hw_params_set_period_size",nErr);
201
  CHECK_ALSA_RETURN(LOGERROR,"hw_params_set_period_size",nErr);
202
202
203
  m_BufferSize = snd_pcm_bytes_to_frames(m_pPlayHandle,m_dwPacketSize * 10); // buffer big enough - but not too big...
203
  m_BufferSize = m_dwPacketSize * 10; // buffer big enough - but not too big...
204
  nErr = snd_pcm_hw_params_set_buffer_size_near(m_pPlayHandle, hw_params, &m_BufferSize);
204
  nErr = snd_pcm_hw_params_set_buffer_size_near(m_pPlayHandle, hw_params, &m_BufferSize);
205
  CHECK_ALSA_RETURN(LOGERROR,"hw_params_set_buffer_size",nErr);
205
  CHECK_ALSA_RETURN(LOGERROR,"hw_params_set_buffer_size",nErr);
206
206

Return to bug 198849