larger period time

This commit is contained in:
badaix 2015-08-04 07:43:31 +02:00
parent e2d832ae56
commit 1c44c9128b

View file

@ -22,8 +22,8 @@
#include <alsa/asoundlib.h>
#include <iostream>
#define BUFFER_TIME 160000
#define PERIOD_TIME 20000
//#define BUFFER_TIME 120000
#define PERIOD_TIME 30000
using namespace std;
@ -78,7 +78,6 @@ void Player::initAlsa()
unsigned int buffer_time = 4 * period_time;
snd_pcm_hw_params_set_period_time_near(handle_, params, &period_time, 0);
snd_pcm_hw_params_set_buffer_time_near(handle_, params, &buffer_time, 0);