Browse Source

On OSX, use jack server name in notification system.

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

+ 3
- 0
ChangeLog View File

@@ -15,6 +15,9 @@ Kjetil S.Matheussen
Jackdmp changes log
---------------------------

2007-11-28 Stephane Letz <letz@grame.fr>
* On OSX, use jack server name in notification system.

2007-11-21 Stephane Letz <letz@grame.fr>
* On OSX, use CFNotificationCenterPostNotificationWithOptions with kCFNotificationDeliverImmediately | kCFNotificationPostToAllSessions for server ==> JackRouter plugin notification.


+ 8
- 4
common/Jackdmp.cpp View File

@@ -360,12 +360,14 @@ int main(int argc, char* argv[])
}

#ifdef __APPLE__
// Send notification to be used in the Jack Router
CFStringRef ref = CFStringCreateWithCString(NULL, server_name, kCFStringEncodingMacRoman);
// Send notification to be used in the JackRouter plugin
CFNotificationCenterPostNotificationWithOptions(CFNotificationCenterGetDistributedCenter(),
CFSTR("com.grame.jackserver.start"),
CFSTR("com.grame.jackserver"),
ref,
NULL,
kCFNotificationDeliverImmediately | kCFNotificationPostToAllSessions);
CFRelease(ref);
#endif
/*
@@ -431,12 +433,14 @@ int main(int argc, char* argv[])
jack_unregister_server(server_name);

#ifdef __APPLE__
// Send notification to be used in the Jack Router
CFStringRef ref1 = CFStringCreateWithCString(NULL, server_name, kCFStringEncodingMacRoman);
// Send notification to be used in the JackRouter plugin
CFNotificationCenterPostNotificationWithOptions(CFNotificationCenterGetDistributedCenter(),
CFSTR("com.grame.jackserver.stop"),
CFSTR("com.grame.jackserver"),
ref1,
NULL,
kCFNotificationDeliverImmediately | kCFNotificationPostToAllSessions);
CFRelease(ref1);
#endif

return 1;


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

@@ -3097,6 +3097,7 @@
../common,
RPC,
);
MACOSX_DEPLOYMENT_TARGET = 10.4;
OTHER_CFLAGS = (
"-DUSE_POSIX_SHM",
"-D__SMP__",
@@ -3202,6 +3203,7 @@
../common,
RPC,
);
MACOSX_DEPLOYMENT_TARGET = 10.4;
OTHER_CFLAGS = (
"-DUSE_POSIX_SHM",
"-D__SMP__",


Loading…
Cancel
Save