Browse Source

Correct init code

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1473 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.63
sletz 18 years ago
parent
commit
d75c0de09c
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      common/JackClient.cpp

+ 4
- 2
common/JackClient.cpp View File

@@ -48,6 +48,7 @@ JackClient::JackClient(JackSynchro** table)
fShutdown = NULL; fShutdown = NULL;
fInit = NULL; fInit = NULL;
fBufferSize = NULL; fBufferSize = NULL;
fClientRegistration = NULL;
fFreewheel = NULL; fFreewheel = NULL;
fPortRegistration = NULL; fPortRegistration = NULL;
fSync = NULL; fSync = NULL;
@@ -58,6 +59,7 @@ JackClient::JackClient(JackSynchro** table)
fInitArg = NULL; fInitArg = NULL;
fBufferSizeArg = NULL; fBufferSizeArg = NULL;
fFreewheelArg = NULL; fFreewheelArg = NULL;
fClientRegistrationArg = NULL;
fPortRegistrationArg = NULL; fPortRegistrationArg = NULL;
fSyncArg = NULL; fSyncArg = NULL;
fConditionnal = 0; // Temporary?? fConditionnal = 0; // Temporary??
@@ -150,13 +152,13 @@ int JackClient::ClientNotify(int refnum, const char* name, int notify, int sync,
switch (notify) { switch (notify) {
case JackNotifyChannelInterface::kAddClient: case JackNotifyChannelInterface::kAddClient:
printf("ClientNotify fName = %s name = %s\n", GetClientControl()->fName, name);
JackLog("JackClient::kAddClient fName = %s name = %s\n", GetClientControl()->fName, name);
if (fClientRegistration && strcmp(GetClientControl()->fName, name) != 0) // Don't call the callback for the registering client itself if (fClientRegistration && strcmp(GetClientControl()->fName, name) != 0) // Don't call the callback for the registering client itself
fClientRegistration(name, 1, fClientRegistrationArg); fClientRegistration(name, 1, fClientRegistrationArg);
break; break;
case JackNotifyChannelInterface::kRemoveClient: case JackNotifyChannelInterface::kRemoveClient:
printf("ClientNotify fName = %s name = %s\n", GetClientControl()->fName, name);
JackLog("JackClient::kRemoveClient fName = %s name = %s\n", GetClientControl()->fName, name);
if (fClientRegistration && strcmp(GetClientControl()->fName, name) != 0) // Don't call the callback for the registering client itself if (fClientRegistration && strcmp(GetClientControl()->fName, name) != 0) // Don't call the callback for the registering client itself
fClientRegistration(name, 0, fClientRegistrationArg); fClientRegistration(name, 0, fClientRegistrationArg);
break; break;


Loading…
Cancel
Save