Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(cherry picked from commit 7d98316)
- Loading branch information
Showing
4 changed files
with
95 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff --git a/tests/test.cpp b/tests/test.cpp | ||
index 8a8a811..31e8459 100644 | ||
--- a/tests/test.cpp | ||
+++ b/tests/test.cpp | ||
@@ -479,7 +479,7 @@ int process4(jack_nframes_t nframes, void *arg) | ||
jack_nframes_t delta_time = cur_time - last_time; | ||
|
||
Log("calling process4 callback : jack_frame_time = %ld delta_time = %ld\n", cur_time, delta_time); | ||
- if (delta_time > 0 && (jack_nframes_t)abs(delta_time - cur_buffer_size) > tolerance) { | ||
+ if (delta_time > 0 && (jack_nframes_t)fabs(delta_time - cur_buffer_size) > tolerance) { | ||
printf("!!! ERROR !!! jack_frame_time seems to return incorrect values cur_buffer_size = %d, delta_time = %d tolerance %d\n", cur_buffer_size, delta_time, tolerance); | ||
} | ||
|
||
@@ -1064,7 +1064,7 @@ int main (int argc, char *argv[]) | ||
} | ||
jack_sleep(1 * 1000); | ||
cur_buffer_size = jack_get_buffer_size(client1); | ||
- if (abs((old_buffer_size * factor) - cur_buffer_size) > 5) { // Tolerance needed for dummy driver... | ||
+ if (fabs((old_buffer_size * factor) - cur_buffer_size) > 5) { // Tolerance needed for dummy driver... | ||
printf("!!! ERROR !!! Buffer size has not been changed !\n"); | ||
printf("!!! Maybe jack was compiled without the '--enable-resize' flag...\n"); | ||
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
diff --git a/common/Jackdmp.cpp b/common/Jackdmp.cpp | ||
index 7eea281..4b8d75d 100644 | ||
--- a/common/Jackdmp.cpp | ||
+++ b/common/Jackdmp.cpp | ||
@@ -50,43 +50,11 @@ are "hard-coded" in the source. A much better approach would be to use the contr | ||
- get available drivers and their possible parameters, then prepare to parse them. | ||
*/ | ||
|
||
-#ifdef __APPLE__ | ||
-#include <CoreFoundation/CFNotificationCenter.h> | ||
-#include <CoreFoundation/CoreFoundation.h> | ||
- | ||
-static void notify_server_start(const char* server_name) | ||
-{ | ||
- // Send notification to be used in the JackRouter plugin | ||
- CFStringRef ref = CFStringCreateWithCString(NULL, server_name, kCFStringEncodingMacRoman); | ||
- CFNotificationCenterPostNotificationWithOptions(CFNotificationCenterGetDistributedCenter(), | ||
- CFSTR("com.grame.jackserver.start"), | ||
- ref, | ||
- NULL, | ||
- kCFNotificationDeliverImmediately | kCFNotificationPostToAllSessions); | ||
- CFRelease(ref); | ||
-} | ||
- | ||
-static void notify_server_stop(const char* server_name) | ||
-{ | ||
- // Send notification to be used in the JackRouter plugin | ||
- CFStringRef ref1 = CFStringCreateWithCString(NULL, server_name, kCFStringEncodingMacRoman); | ||
- CFNotificationCenterPostNotificationWithOptions(CFNotificationCenterGetDistributedCenter(), | ||
- CFSTR("com.grame.jackserver.stop"), | ||
- ref1, | ||
- NULL, | ||
- kCFNotificationDeliverImmediately | kCFNotificationPostToAllSessions); | ||
- CFRelease(ref1); | ||
-} | ||
- | ||
-#else | ||
- | ||
static void notify_server_start(const char* server_name) | ||
{} | ||
static void notify_server_stop(const char* server_name) | ||
{} | ||
|
||
-#endif | ||
- | ||
static void copyright(FILE* file) | ||
{ | ||
fprintf(file, "jackdmp " VERSION "\n" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters