Browse Source

Cleanup

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@2228 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/1.90
sletz 17 years ago
parent
commit
33bd24b9d0
2 changed files with 8 additions and 10 deletions
  1. +7
    -9
      common/JackConstants.h
  2. +1
    -1
      common/JackFreewheelDriver.cpp

+ 7
- 9
common/JackConstants.h View File

@@ -27,8 +27,6 @@ namespace Jack


#define VERSION "0.72" #define VERSION "0.72"


#define FORK_SERVER 1

#define BUFFER_SIZE_MAX 8192 #define BUFFER_SIZE_MAX 8192


#define JACK_PORT_NAME_SIZE 256 #define JACK_PORT_NAME_SIZE 256
@@ -44,12 +42,10 @@ namespace Jack


#define CLIENT_NUM 64 #define CLIENT_NUM 64


#define AUDIO_DRIVER_REFNUM 0 // Audio driver is initialized first, it will get the refnum 0
#define FREEWHEEL_DRIVER_REFNUM 1 // Freewheel driver is initialized second, it will get the refnum 1
#define LOOPBACK_DRIVER_REFNUM 2 // Loopback driver is initialized third, it will get the refnum 2
#define REAL_REFNUM LOOPBACK_DRIVER_REFNUM + 1 // Real clients start at LOOPBACK_DRIVER_REFNUM + 1

#define SOCKET_TIME_OUT 5
#define AUDIO_DRIVER_REFNUM 0 // Audio driver is initialized first, it will get the refnum 0
#define FREEWHEEL_DRIVER_REFNUM 1 // Freewheel driver is initialized second, it will get the refnum 1
#define LOOPBACK_DRIVER_REFNUM 2 // Loopback driver is initialized third, it will get the refnum 2
#define REAL_REFNUM LOOPBACK_DRIVER_REFNUM + 1 // Real clients start at LOOPBACK_DRIVER_REFNUM + 1


#ifdef WIN32 #ifdef WIN32
#define jack_server_dir "server" #define jack_server_dir "server"
@@ -76,7 +72,9 @@ namespace Jack
#define JACK_PROTOCOL_VERSION 3 #define JACK_PROTOCOL_VERSION 3
#endif #endif


#define DRIVER_OPEN_TIMEOUT 5 // in sec
#define SOCKET_TIME_OUT 5 // in sec
#define DRIVER_OPEN_TIMEOUT 5 // in sec
#define FREEWHEEL_DRIVER_TIMEOUT 10 // in sec


#define NO_PORT 0xFFFE #define NO_PORT 0xFFFE




+ 1
- 1
common/JackFreewheelDriver.cpp View File

@@ -36,7 +36,7 @@ int JackFreewheelDriver::Process()
fLastWaitUst = GetMicroSeconds(); fLastWaitUst = GetMicroSeconds();
fEngine->Process(fLastWaitUst); fEngine->Process(fLastWaitUst);
fGraphManager->ResumeRefNum(fClientControl, fSynchroTable); // Signal all clients fGraphManager->ResumeRefNum(fClientControl, fSynchroTable); // Signal all clients
if (fGraphManager->SuspendRefNum(fClientControl, fSynchroTable, 10 * 1000000) < 0) { // Wait for all clients to finish for 10 sec
if (fGraphManager->SuspendRefNum(fClientControl, fSynchroTable, FREEWHEEL_DRIVER_TIMEOUT * 1000000) < 0) { // Wait for all clients to finish for 10 sec
jack_error("JackFreewheelDriver::ProcessSync SuspendRefNum error"); jack_error("JackFreewheelDriver::ProcessSync SuspendRefNum error");
return -1; return -1;
} }


Loading…
Cancel
Save