lower alsa period time from 30 to 15 ms

This commit is contained in:
badaix 2020-08-26 12:45:28 +02:00
parent c6324d0811
commit 98ac8b2fb7
2 changed files with 2 additions and 1 deletions

View file

@ -23,7 +23,7 @@
#include "common/utils/string_utils.hpp" #include "common/utils/string_utils.hpp"
//#define BUFFER_TIME 120000 //#define BUFFER_TIME 120000
#define PERIOD_TIME 30000 #define PERIOD_TIME 15000
#define exp10(x) (exp((x)*log(10))) #define exp10(x) (exp((x)*log(10)))
using namespace std; using namespace std;

View file

@ -96,6 +96,7 @@ void AlsaStream::start()
void AlsaStream::stop() void AlsaStream::stop()
{ {
PcmStream::stop();
uninitAlsa(); uninitAlsa();
} }