Kjetil Matheussen
f7bccdca65
Tests: Fix compilation with gcc7
7 years ago
Karl Linden
c21c774855
waf: Nitpick styling for consistency. Fixes #172 .
8 years ago
Rahul Bedarkar
1dc83fd7de
tests: define __STDC_LIMIT_MACROS
With glibc 2.16, we get following build error when building jack2:
[193/247] cxx: tests/iodelay.cpp -> build/tests/iodelay.cpp.4.o
../tests/iodelay.cpp:171:43: error: 'UINT32_MAX' was not declared in this scope
../tests/iodelay.cpp:171:55: error: 'UINT32_MAX' was not declared in this scope
../tests/iodelay.cpp:172:44: error: 'UINT32_MAX' was not declared in this scope
../tests/iodelay.cpp:172:56: error: 'UINT32_MAX' was not declared in this scope
In glibc 2.17 or older version, Header <stdint.h> defines these macros
for C++ only if explicitly requested by defining __STDC_LIMIT_MACROS.
We can't use <cstdint> since it requires C++11 standard.
This build issue found by Buildroot autobuilder.
http://autobuild.buildroot.net/results/369/369ce208ffea43dad75ba0a13469159b341e3bf5/
Signed-off-by: Rahul Bedarkar <rahul.bedarkar@imgtec.com>
8 years ago
Adrian Knoth
ff1ed2c452
Fix initialization in test/iodelay.cpp
jack_latency_range_t is
struct _jack_latency_range {
jack_nframes_t min;
jack_nframes_t max;
};
and jack_nframes_t is
typedef uint32_t jack_nframes_t;
so it's unsigned. Initialising it with -1 is invalid (at least in C++14). We cannot use {0, 0}, because latency_cb has
jack_latency_range_t range;
range.min = range.max = 0;
if ((range.min != capture_latency.min) || (range.max !=
capture_latency.max)) {
capture_latency = range;
}
so we must not have {0, 0}, otherwise the condition would never be true.
Using UINT32_MAX should be equivalent to the previous -1.
9 years ago
Karl Linden
af99165ef6
Drop problematic CPPFLAGS for MacOSX.
9 years ago
falkTX
05216197b4
Make JackPortRenameCallback return void, to match JACK1 API
JACK2 added this function first, but the int return has been always wrong.
When JACK1 added JackPortRenameCallback it used the proper return.
Now that JACK1 supports port renames, devs will start to use it.
(previously it didn't work properly because of the missing jack_client_t* arg)
Some code might be broken because of this, but it's a very simple change,
and existing code would have been broken when changing JACK1 to JACK2.
Finally, JACK2 code never uses the int return value of this callback.
So there's no real reason to NOT change this.
9 years ago
Stephane Letz
76491d3bc5
Add more tests for client registration code in test.cpp.
12 years ago
Stephane Letz
bebd4d3d69
Make API test more robust.
12 years ago
Stephane Letz
e4730c6c97
Fix some incoherency with strings.
12 years ago
Stephane Letz
4ab01b7c94
Correct jack_test for jack_port_name_size.
12 years ago
Stephane Letz
07223bc460
Add tests to check jack_client_name_size and jack_port_name_size API.
12 years ago
Stephane Letz
67ac44402f
merge new MTDM code from Fons' latest release.
12 years ago
Stephane Letz
6483c0d5eb
New jack_get_cycle_times() implementation from Fons Adriennsen.
13 years ago
Stephane Letz
94cb2ee9a1
Compiles again on Windows.
13 years ago
Stephane Letz
4a289f48d9
Correct JackMessageBuffer::SetInitCallback.
13 years ago
Stephane Letz
4f0474f334
Correct debug targets on Windows, use jack_free in test.cpp.
13 years ago
Nedko Arnaudov
329d83c92b
swtich from uselib/uselib_local to use
13 years ago
Nedko Arnaudov
971b1656d5
switch from bld.new_task_gen() to bld()
jackdbus needs explicit index because device reservation code
is shared with jackd and waf cannot autodetect this.
13 years ago
Adrian Knoth
e689393daa
wscript: fix indentation error
13 years ago
Adrian Knoth
58036bc80f
Run 2to3 on all wscript files.
Automatically upgrading to python3 syntax, where possible.
13 years ago
sletz
9f4df15abb
Factorize code the server/client request.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4684 0c269be4-1314-0410-8aa9-9f06e86f4224
13 years ago
sletz
85df85f520
Fix for compilation on Solaris.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4670 0c269be4-1314-0410-8aa9-9f06e86f4224
13 years ago
sletz
f0a9512dd7
Improve some of example-clients, cleanup.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4610 0c269be4-1314-0410-8aa9-9f06e86f4224
13 years ago
Stephane Letz
734e450924
NetJack2 code cleanup.
13 years ago
sletz
6faac69942
Use jack_free instead of free.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4548 0c269be4-1314-0410-8aa9-9f06e86f4224
13 years ago
sletz
b1185fcc9f
Fix compilation of iodelay.cpp.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4489 0c269be4-1314-0410-8aa9-9f06e86f4224
14 years ago
sletz
885a6b7cf2
Make the printed output of jack_iodelay more useful to actual users.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4488 0c269be4-1314-0410-8aa9-9f06e86f4224
14 years ago
nedko
08876bd6eb
fix compile warnings
gcc (Gentoo 4.4.5 p1.2, pie-0.4.5) 4.4.5
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4363 0c269be4-1314-0410-8aa9-9f06e86f4224
14 years ago
Nedko Arnaudov
c420e6508e
wscript: on macos build for x86_64 as well
14 years ago
sletz
ecb84b5f9f
rebase from trunk 4238:4306
git-svn-id: http://subversion.jackaudio.org/jack/jack2/branches/libjacknet@4307 0c269be4-1314-0410-8aa9-9f06e86f4224
14 years ago
sletz
f942ca2284
Correct linking issues.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4288 0c269be4-1314-0410-8aa9-9f06e86f4224
14 years ago
Stephane Letz
9ce3e4fc52
Correct test.cpp.
14 years ago
sletz
a7e8377441
rebase from trunk 4083:4180
git-svn-id: http://subversion.jackaudio.org/jack/jack2/branches/libjacknet@4181 0c269be4-1314-0410-8aa9-9f06e86f4224
14 years ago
sletz
1aac5898c8
Correct tests wscript.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4165 0c269be4-1314-0410-8aa9-9f06e86f4224
14 years ago
sletz
21dfcfe606
Rename jdelay to jack_iodelay as per Fons' request.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4163 0c269be4-1314-0410-8aa9-9f06e86f4224
14 years ago
sletz
4574b6cfbd
Fix jdelay for new latency API.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4159 0c269be4-1314-0410-8aa9-9f06e86f4224
14 years ago
sletz
4828d0c835
rebase from trunk 4041:4083
git-svn-id: http://subversion.jackaudio.org/jack/jack2/branches/libjacknet@4084 0c269be4-1314-0410-8aa9-9f06e86f4224
14 years ago
sletz
d4e51743a0
Compiles again on Windows.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4067 0c269be4-1314-0410-8aa9-9f06e86f4224
14 years ago
sletz
7a2863cf55
rebase from trunk 4004:4041
git-svn-id: http://subversion.jackaudio.org/jack/jack2/branches/libjacknet@4042 0c269be4-1314-0410-8aa9-9f06e86f4224
14 years ago
sletz
ecb4471edb
Add tests to validate intclient.h API.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4006 0c269be4-1314-0410-8aa9-9f06e86f4224
15 years ago
sletz
54ebab2cf2
rebase from trunk 3930:3966
git-svn-id: http://subversion.jackaudio.org/jack/jack2/branches/libjacknet@3967 0c269be4-1314-0410-8aa9-9f06e86f4224
15 years ago
sletz
85a525d60b
Fix errors found by cppcheck.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3947 0c269be4-1314-0410-8aa9-9f06e86f4224
15 years ago
sletz
ec2e42c933
rebase from trunk 3899:3916
git-svn-id: http://subversion.jackaudio.org/jack/jack2/branches/libjacknet@3917 0c269be4-1314-0410-8aa9-9f06e86f4224
15 years ago
sletz
f692790318
Correct jack_test.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3909 0c269be4-1314-0410-8aa9-9f06e86f4224
15 years ago
sletz
5f68a6557a
rebase from trunk 3813:3899
git-svn-id: http://subversion.jackaudio.org/jack/jack2/branches/libjacknet@3900 0c269be4-1314-0410-8aa9-9f06e86f4224
15 years ago
sletz
c48af77405
Correct rename callback in tests.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3851 0c269be4-1314-0410-8aa9-9f06e86f4224
15 years ago
Stéphane LETZ
5cebf485b0
Still call callback in register/unregister if client is active, add test code.
15 years ago
sletz
f1631119f2
Fix port_rename callback : now both old name and new name are given as parameters.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3835 0c269be4-1314-0410-8aa9-9f06e86f4224
15 years ago
sletz
6b765f0168
rebase from trunk 3684:3813
git-svn-id: http://subversion.jackaudio.org/jack/jack2/branches/libjacknet@3814 0c269be4-1314-0410-8aa9-9f06e86f4224
15 years ago
sletz
0bf1580f03
Correct JackInfoShutdownCallback prototype, two new JackClientProcessFailure and JackClientZombie JackStatus code.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3732 0c269be4-1314-0410-8aa9-9f06e86f4224
15 years ago