Browse Source

Correct JackMachNotifyChannel::ClientNotify.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1719 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.69
sletz 17 years ago
parent
commit
5515a6071f
4 changed files with 15 additions and 6 deletions
  1. +6
    -1
      ChangeLog
  2. +1
    -1
      common/JackSocketNotifyChannel.cpp
  3. +6
    -4
      macosx/JackMachNotifyChannel.cpp
  4. +2
    -0
      macosx/Jackdmp.xcodeproj/project.pbxproj

+ 6
- 1
ChangeLog View File

@@ -15,7 +15,12 @@ Kjetil S.Matheussen
Jackdmp changes log Jackdmp changes log
--------------------------- ---------------------------


2007-11-28 Stephane Letz <letz@grame.fr>
2007-11-30 Stephane Letz <letz@grame.fr>

* Correct JackMachNotifyChannel::ClientNotify.

2007-11-29 Stephane Letz <letz@grame.fr>

* Correct fPeriodUsecs computation in JackAudioDriver::SetBufferSize and JackAudioDriver::SetSampleRate. * Correct fPeriodUsecs computation in JackAudioDriver::SetBufferSize and JackAudioDriver::SetSampleRate.


2007-11-28 Stephane Letz <letz@grame.fr> 2007-11-28 Stephane Letz <letz@grame.fr>


+ 1
- 1
common/JackSocketNotifyChannel.cpp View File

@@ -56,7 +56,7 @@ void JackSocketNotifyChannel::ClientNotify(int refnum, const char* name, int not
jack_error("Could not write notification"); jack_error("Could not write notification");
fNotifySocket.Close(); fNotifySocket.Close();
*result = -1; *result = -1;
return ;
return;
} }


// Read the result in "synchronous" mode only // Read the result in "synchronous" mode only


+ 6
- 4
macosx/JackMachNotifyChannel.cpp View File

@@ -50,13 +50,15 @@ void JackMachNotifyChannel::Close()


void JackMachNotifyChannel::ClientNotify(int refnum, const char* name, int notify, int sync, int value, int* result) void JackMachNotifyChannel::ClientNotify(int refnum, const char* name, int notify, int sync, int value, int* result)
{ {
*result = 0;
kern_return_t res = (sync) kern_return_t res = (sync)
? rpc_jack_client_sync_notify(fClientPort.GetPort(), refnum, (char*)name, notify, value, result) ? rpc_jack_client_sync_notify(fClientPort.GetPort(), refnum, (char*)name, notify, value, result)
: rpc_jack_client_async_notify(fClientPort.GetPort(), refnum, (char*)name, notify, value); : rpc_jack_client_async_notify(fClientPort.GetPort(), refnum, (char*)name, notify, value);
if (res != KERN_SUCCESS) {
jack_error("JackMachNotifyChannel::ClientNotify: name = %s notify = %ld err = %s", name, notify, mach_error_string(res));
}
if (res == KERN_SUCCESS) {
*result = 0;
} else {
jack_error("JackMachNotifyChannel::ClientNotify: name = %s notify = %ld err = %s", name, notify, mach_error_string(res));
*result = -1;
}
} }


} // end of namespace } // end of namespace


+ 2
- 0
macosx/Jackdmp.xcodeproj/project.pbxproj View File

@@ -3299,6 +3299,7 @@
ppc, ppc,
); );
COPY_PHASE_STRIP = YES; COPY_PHASE_STRIP = YES;
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = dwarf; DEBUG_INFORMATION_FORMAT = dwarf;
DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1; DYLIB_CURRENT_VERSION = 1;
@@ -3464,6 +3465,7 @@
i386, i386,
); );
COPY_PHASE_STRIP = YES; COPY_PHASE_STRIP = YES;
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = dwarf; DEBUG_INFORMATION_FORMAT = dwarf;
DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1; DYLIB_CURRENT_VERSION = 1;


Loading…
Cancel
Save