Skip to content
Snippets Groups Projects
Commit 7e68cd8d authored by Emmanuel Milou's avatar Emmanuel Milou
Browse files

alsa modif, increase the hardware buffer size, fragment size to 25ms

parent 70cdc21a
No related branches found
No related tags found
No related merge requests found
......@@ -296,8 +296,8 @@ AlsaLayer::open_device(std::string pcm_p, std::string pcm_c, int flag)
snd_pcm_uframes_t period_size_out = getFrameSize() * getSampleRate() / 1000 * 2;//1024 ;
snd_pcm_uframes_t buffer_size_out = period_size_out * 4 ;
unsigned int buffer_time = 80000; //80ms
unsigned int period_time = buffer_time / 4 ; //20ms
unsigned int buffer_time = 100000; //100ms
unsigned int period_time = buffer_time / 4 ; //25ms
if(flag == SFL_PCM_BOTH || flag == SFL_PCM_CAPTURE)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment