Browse Source

Better wait_time calculation

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@2493 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/1.90
sletz 17 years ago
parent
commit
7e7db2b186
2 changed files with 3 additions and 1 deletions
  1. +2
    -1
      common/JackNetDriver.cpp
  2. +1
    -0
      common/wscript

+ 2
- 1
common/JackNetDriver.cpp View File

@@ -90,7 +90,8 @@ namespace Jack
int JackNetDriver::ProcessNull()
{
usleep(10 * 1000);
static unsigned int wait_time = (unsigned int)((float(fEngineControl->fBufferSize) / (float(fEngineControl->fSampleRate))) * 1000000.0f);
usleep(wait_time);
return JackAudioDriver::ProcessNull();
}



+ 1
- 0
common/wscript View File

@@ -88,6 +88,7 @@ def build(bld):
'JackLoopbackDriver.cpp',
'JackServer.cpp',
'JackThreadedDriver.cpp',
'JackWaitThreadedDriver.cpp',
'JackSocketServerChannel.cpp',
'JackSocketNotifyChannel.cpp',
'JackSocketServerNotifyChannel.cpp',


Loading…
Cancel
Save