fixed: set max buffer size to 100 ms
This commit is contained in:
parent
566c19161c
commit
2803160dce
1 changed files with 1 additions and 3 deletions
|
@ -233,12 +233,10 @@ int CJackClient::SJackProcessCallback(jack_nframes_t nframes, void *arg)
|
|||
return 0;
|
||||
}
|
||||
|
||||
#define MAXBUFFER (1024 * 1024)
|
||||
|
||||
void CJackClient::PJackProcessCallback(jack_nframes_t nframes)
|
||||
{
|
||||
unsigned int neededsize = m_outsamples + nframes;
|
||||
if (neededsize > MAXBUFFER)
|
||||
if (neededsize > (unsigned int)m_samplerate / 10)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue