Commit Graph

705 Commits

Author SHA1 Message Date
falkTX 49a7faa24b
transport.c: restore changes lost during merge
Signed-off-by: falkTX <falktx@falktx.com>
2021-12-31 05:13:00 +00:00
Filipe Coelho 42f84ea552
Merge pull request #33 from jackaudio/jack2_transport
Jack2 transport.c
2021-12-31 05:07:05 +00:00
falkTX 4b8fce3a1e Use JACK_LIB_EXPORT for inprocess example
Fixes usage when jack is built with -fvisiblity=hidden

Signed-off-by: falkTX <falktx@gmail.com>
2021-12-31 05:05:31 +00:00
Stephane Letz 0a93e678df Use jack_free instead of free in inprocess.c. 2021-12-31 05:05:31 +00:00
sletz f0cb2c2419 Internal loadable client implementation (in progress).
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1583 0c269be4-1314-0410-8aa9-9f06e86f4224
2021-12-31 05:05:31 +00:00
David Runge 71a0e7aa3c Remove example-clients/inprocess.c
example-clients/inprocess.c:
Remove the original inprocess.c as the jack2 version of it had been
imported with additional changes applied, which makes cherry-picking and
rebasing very hard.
2021-12-31 05:05:31 +00:00
krasjet 493ec976ee fix a deadlock issue in midi_dump
The main loop might be blocked by `data_ready` when JACK server dies
while the program is running.

To reproduce the problem:

1. Start JACK server
2. Run `jack_midi_dump`
3. Stop JACK server
4. Press Ctrl-C in `jack_midi_dump` to send SIGINT.
5. Observe that the program doesn't stop and stuck in the main loop.

This patch forces the `data_ready` to be signaled in the signal handler
to prevent indefinite waiting.
2021-12-31 05:04:03 +00:00
luz.paz 330e1d3a3d FIx doxygen and user facing and non-facing typos
Found via `codespell -q 3`
2021-12-31 05:04:03 +00:00
Thomas Brand de31f4c394 Check early if jack_midi_event_get() was successful. 2021-12-31 05:04:03 +00:00
Thomas Brand d2bb98c843 Ignore MIDI messages > MSG_BUFFER_SIZE 2021-12-31 05:04:03 +00:00
Thomas Brand cacc8fd028 Increase buffer sizes in jack_midi_dump. 2021-12-31 05:04:03 +00:00
Martin Koegler 69d2044353 Fix example client for mingw build 2021-12-31 05:04:03 +00:00
Robin Gareus 3090e3a1af realtime-safe midi-dump (use ringbuffer)
Signed-off-by: Robin Gareus <robin@gareus.org>
2021-12-31 05:04:03 +00:00
Robin Gareus 48464bfaba add usage() to jack_midi_dump
Signed-off-by: Robin Gareus <robin@gareus.org>
2021-12-31 05:04:03 +00:00
Robin Gareus c9596c8ff2 midi-dump: exit cleanly, add support for absolute+relative timestamps
Signed-off-by: Robin Gareus <robin@gareus.org>
2021-12-31 05:04:03 +00:00
sletz 8f3963118f Add jack_midi_dump client.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4170 0c269be4-1314-0410-8aa9-9f06e86f4224
2021-12-31 05:04:03 +00:00
David Runge 7d6c0a225c Remove tools/midi_dump.c
tools/midi_dump.c:
Remove original version of midi_cump.c as the jack2 variant had been
imported to a different location (with added modifications), which makes
a rebase impossible.
2021-12-31 05:04:03 +00:00
David Runge a2a4988df3 Adapt meson build for new location of iodelay
tools/meson.build:
Adapt meson build file to rename of tools/iodelay.c to
tools/iodelay.cpp.
2021-12-31 05:01:33 +00:00
Rahul Bedarkar 3a48e0c728 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>
2021-12-31 05:01:33 +00:00
Adrian Knoth 0a2a403ce8 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.
2021-12-31 05:01:33 +00:00
Stephane Letz 0db5871f1f merge new MTDM code from Fons' latest release. 2021-12-31 05:01:33 +00:00
Stephane Letz a461102137 NetJack2 code cleanup. 2021-12-31 05:01:33 +00:00
sletz 86148730cb Fix compilation of iodelay.cpp.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4489 0c269be4-1314-0410-8aa9-9f06e86f4224
2021-12-31 05:01:33 +00:00
sletz 016872c9b1 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
2021-12-31 05:01:33 +00:00
sletz 94aec7c40c 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
2021-12-31 05:01:33 +00:00
sletz fe4d1a44fc Fix jdelay for new latency API.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4159 0c269be4-1314-0410-8aa9-9f06e86f4224
2021-12-31 05:01:33 +00:00
sletz 3a40d60c70 Cleanup, compilation on Windows.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3120 0c269be4-1314-0410-8aa9-9f06e86f4224
2021-12-31 05:01:33 +00:00
sletz b5b390ced1 Cleanup, renaming.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3119 0c269be4-1314-0410-8aa9-9f06e86f4224
2021-12-31 05:01:33 +00:00
sletz 9007d818f5 Activate now connect to FW driver and start the realtime thread only if clients are actually realtime, that is have setup any of the RT callback.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@2279 0c269be4-1314-0410-8aa9-9f06e86f4224
2021-12-31 05:01:33 +00:00
sletz 255bfa3096 Compilation on Windows
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@2270 0c269be4-1314-0410-8aa9-9f06e86f4224
2021-12-31 05:01:33 +00:00
sletz d89518b7cd Cleanup
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1205 0c269be4-1314-0410-8aa9-9f06e86f4224
2021-12-31 05:01:33 +00:00
David Runge 367852c278 Remove tools/iodelay.c
tools/iodelay.c:
Remove the original iodelay.c as the jack2 variant had been imported to
another location (with added modifications and shifting names), making a
rebase impossible.
2021-12-31 05:01:33 +00:00
falkTX 2830ed1537
property.c: remove small unused/useless code
Signed-off-by: falkTX <falktx@falktx.com>
2021-12-31 05:00:12 +00:00
falkTX b0121d9928
property.c: use tabs like all the other code
Signed-off-by: falkTX <falktx@falktx.com>
2021-12-31 04:58:52 +00:00
falkTX d521f07615 property.c: Fix whitespace
Signed-off-by: falkTX <falktx@falktx.com>
2021-12-31 04:46:13 +00:00
falkTX 85f517eb26 jack_property: Fix possible crash on "-l ..."
Signed-off-by: falkTX <falktx@falktx.com>
2021-12-31 04:46:13 +00:00
Bruno Vernay d93feadc79 Fix wrong error message and few typos 2021-12-31 04:46:13 +00:00
Filipe Coelho 1e91600f4c Fix client UUID gen, and some warnings (#440)
* Fix generation of client uuid

Signed-off-by: falkTX <falktx@falktx.com>

* Remove all client properties when removed; Cleanup a few things

Signed-off-by: falkTX <falktx@falktx.com>

* Make all uuid function arguments use jack_uuid_t type; Fix warnings

Signed-off-by: falkTX <falktx@falktx.com>

* Rework uuids to never be int, more cleanup

Signed-off-by: falkTX <falktx@falktx.com>
2021-12-31 04:46:13 +00:00
Thomas Brand 7ad4594adb NO-OP: remove trailing whitespace 2021-12-31 04:46:13 +00:00
Thomas Brand 324da7541e Remove undocumented -a/--all flag (not implemented, same as -l). 2021-12-31 04:46:13 +00:00
luz.paz 0a8b5faa43 FIx doxygen and user facing and non-facing typos
Found via `codespell -q 3`
2021-12-31 04:43:19 +00:00
Karl Linden f97842d45f Handle alloca properly
This adds missing includes for alloca. The man page of alloca(3) states
that alloca.h should be #include'd to use alloca.

Also work around missing alloca.h header on Windows by adding a
compatibility module.

Closes: #197
2021-12-31 04:43:19 +00:00
Stephane Letz 54fdd3afe8 Tim Mayberry : Changes to get example-clients to build using MinGW compiler. 2021-12-31 04:43:19 +00:00
Stephane Letz 7ff914829c Cleanup. 2021-12-31 04:43:19 +00:00
Stephane Letz 01ff3a33f1 Tim Mayberry : Changes to get example-clients to build using MinGW compiler. 2021-12-31 04:42:00 +00:00
sletz 7739425c54 Code factorization and cleanup.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4514 0c269be4-1314-0410-8aa9-9f06e86f4224
2021-12-31 04:42:00 +00:00
sletz 22911e52ce More cleanup
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@2354 0c269be4-1314-0410-8aa9-9f06e86f4224
2021-12-31 04:42:00 +00:00
falkTX 339a582725
samplerate.c: fix windows build
Signed-off-by: falkTX <falktx@falktx.com>
2021-12-31 04:41:29 +00:00
Stephane Letz 1c11a395a6 Tim Mayberry : Changes to get example-clients to build using MinGW compiler. 2021-12-31 04:40:51 +00:00
falkTX fd3fdea168
freewheel.c: fix windows build
Signed-off-by: falkTX <falktx@falktx.com>
2021-12-31 04:40:22 +00:00