diff options
author | Adrian Knoth <adi@drcomp.erfurt.thur.de> | 2016-06-11 05:35:07 +0200 |
---|---|---|
committer | Adrian Knoth <adi@drcomp.erfurt.thur.de> | 2016-06-11 09:16:47 +0200 |
commit | ff1ed2c4524095055140370c1008a2d9cccc5645 (patch) | |
tree | 1cc47b64c82fed8272c95d38a68b8c7cde3aad79 /example-clients | |
parent | 43efc94ebd20b0af4bf6df5a45d33c4ac559c555 (diff) | |
download | jack2-ff1ed2c4524095055140370c1008a2d9cccc5645.tar.gz |
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.
Diffstat (limited to 'example-clients')
0 files changed, 0 insertions, 0 deletions