fixed: compiler warning
This commit is contained in:
parent
42c059719e
commit
e4d40a807c
2 changed files with 3 additions and 1 deletions
|
@ -236,7 +236,7 @@ int CJackClient::SJackProcessCallback(jack_nframes_t nframes, void *arg)
|
||||||
void CJackClient::PJackProcessCallback(jack_nframes_t nframes)
|
void CJackClient::PJackProcessCallback(jack_nframes_t nframes)
|
||||||
{
|
{
|
||||||
unsigned int neededsize = m_outsamples + nframes;
|
unsigned int neededsize = m_outsamples + nframes;
|
||||||
if (neededsize > (unsigned int)m_samplerate / 10)
|
if (neededsize > (unsigned int)m_samplerate / 10 + nframes * 2)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,6 +40,8 @@ void* CThread::ThreadFunction(void* args)
|
||||||
CThread* thread = reinterpret_cast<CThread*>(args);
|
CThread* thread = reinterpret_cast<CThread*>(args);
|
||||||
thread->Process();
|
thread->Process();
|
||||||
thread->m_running = false;
|
thread->m_running = false;
|
||||||
|
|
||||||
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CThread::Process()
|
void CThread::Process()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue