fixed: compiler warning

This commit is contained in:
Bob van Loosen 2012-12-27 18:16:19 +01:00
parent 42c059719e
commit e4d40a807c
2 changed files with 3 additions and 1 deletions

View file

@ -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;
} }

View file

@ -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()