John Emmas
b6cb758357
Another minor tweak to fix a build issue with MSVC/c++17
...
Fixes a conflict between 'std::byte' (new in c++17) and earlier declarations / typedef's that defined 'byte'
2024-10-17 12:07:05 +01:00
Robin Gareus
d525f8d60c
Only enable RegionFX in debug builds for the time being
...
This reverts commit 14ff2f2e68 .
2024-10-16 18:29:51 +02:00
Paul Davis
6149771910
fix yet more cases where SMF are imported and named incorrectly
2024-10-15 22:35:04 -06:00
Mads Kiilerich
0d4bce8663
backends: Fix class name in debug and error messages for set_latency_range and get_latency_range traces
2024-10-15 00:41:12 +02:00
Mads Kiilerich
99ba70384a
FaderPort8: Improve DEBUG_TRACE messages
2024-10-15 00:41:12 +02:00
Mads Kiilerich
5c763c99ba
FaderPort8: Use explicit "Port 1" for FP8 too
...
84e38b4c65 made the same change for FP16.
It has apparently not been necessary for FP8 so far, because backends
have happened to report "Port 1" before the control port. But that is
not necessarily the case. It failed for me when playing around.
Change FP8 handling to also not make assumptions about the device order
returned by the backend.
2024-10-15 00:41:12 +02:00
Mads Kiilerich
b7249c8fe7
build: Set _POSIX_C_SOURCE=200809L instead of comment about -std=gnu99 in 8fea1ea42e
...
We are converging towards setting it globally.
2024-10-14 22:57:15 +02:00
Robin Gareus
eb87b0e2eb
Remove old safety check
...
These days it only produces false positives (locate at start
of session export).
We leave `ENSURE_PROCESS_THREAD` in place, since it may
come in handy at some point (eg. static analysis, documentation)
2024-10-14 22:52:37 +02:00
Robin Gareus
8115578d4e
Add RT thread priority debugging
2024-10-14 21:49:56 +02:00
Robin Gareus
63d3d1ff3d
Initialize fader's numeric entry adjustment
...
Previously the internal adjustment used for numeric entry
was left at 0 if the BarController's adjustment was never modified.
2024-10-14 17:58:00 +02:00
John Emmas
fd8808d7b8
Minor declaration issue that upsets MSVC/c++17
2024-10-13 11:39:48 +01:00
Robin Gareus
0aff098541
Fix IO Thread priority
...
This adds `pbd_pthread_priority` indirection to correctly get
the absolute thread priority.
and for consistency a 4 letter enum is used.
2024-10-11 10:06:49 +02:00
Robin Gareus
5efa5b4529
Optimize audio region read when no regionFX are used
2024-10-10 02:45:03 +02:00
Paul Davis
43dd75b10e
invalidate audio region cache when the region _start changes
2024-10-09 16:53:55 -06:00
Robin Gareus
14ff2f2e68
Revert "Only enable RegionFX in debug builds for the time being"
...
This reverts commit cae710cd7c .
2024-10-09 20:49:36 +02:00
Paul Davis
2a96c9ce98
fix issues with MIDI playback (and who knows what else) near start of roll
2024-10-08 08:36:23 -06:00
Robin Gareus
cae710cd7c
Only enable RegionFX in debug builds for the time being
2024-10-08 16:23:43 +02:00
Robin Gareus
59e98bd824
Fix reading peak-file after EOF
...
This issue was introduced in b28090c64c
2024-10-08 11:54:14 +02:00
Robin Gareus
33806a2735
Revert "Only enable RegionFX in debug builds for the time being"
...
This reverts commit 2d076cccb1 .
2024-10-03 17:28:09 +02:00
Paul Davis
e3e014bfe6
NO-OP: comment work
2024-10-02 11:03:08 -06:00
Paul Davis
52336eb2f0
fix MIDI Clock output times by using the correct call to get tempo at a position
...
Could be worth a double check of the codebase/hiding the API that ignores ramping
2024-10-02 09:13:28 -06:00
Robin Gareus
adc9d9e0af
VST3: work around plugins that do not heed ContextInfo::kSendCount
...
see also c5618f01d6
2024-10-01 23:03:19 +02:00
John Emmas
07c79ce92c
Small changes to make pthread_utils.cc buildable again with MSVC
2024-10-01 20:28:16 +01:00
Robin Gareus
44b2377e72
VST3: Fix possible deadlock when using PSL extension for sends
...
see also c5618f01d6
2024-10-01 19:24:36 +02:00
Robin Gareus
ca7ac7027b
VST3: add more debug messages for PSL extensions
2024-10-01 01:21:35 +02:00
Robin Gareus
22a2cb0624
Ignore inactive routes for pre-roll sub-cycles
2024-09-30 23:36:36 +02:00
Robin Gareus
1aad6805b3
Fix count-in/preroll recording offsets
...
Notably `Route::process_output_buffers` uses
```
output_latency = speed * _output_latency;
```
here, speed already needs to be non-zero during count-in
and pre-roll.
2024-09-30 23:36:06 +02:00
Robin Gareus
dab22a7c70
Explicitly set Windows Process Scheduling Class
2024-09-30 19:57:53 +02:00
Robin Gareus
ed437afda7
Fix thread priorities for Windows builds
2024-09-30 19:07:53 +02:00
Robin Gareus
11f71a3297
Fix playback of sessions with low sample-rate
...
previously, _chunksize =
```
minimum_disk_read_bytes / sizeof (Sample)
```
can become larger then actual allocated ringbuffer:
```
audio_playback_buffer_seconds * sample-rate
```
In which case the buffer was never filled.
The disk writer has similar issues
2024-09-29 18:25:33 +02:00
Robin Gareus
46f61d7662
Fix and simplify Playlist::fade_range for multiple ranges
2024-09-28 21:16:55 +02:00
Robin Gareus
28605b5351
Fix Audio region fade property mapping
...
This fixes an issue when undoing region fades.
Particularly but not limited to the following:
1. select a region and split it in the middle
2. switch to range tool. make a range selection across the split
3. Edit > Fade > Fade range seection (or press `/`)
4. Undo
Previously the fade-out of the earlier region was not undone.
2024-09-28 21:15:57 +02:00
Robin Gareus
1d921dec0b
Debug thread sched_priority
2024-09-28 14:47:52 +02:00
Robin Gareus
2014faaeca
Fix BaseUI thread priority
2024-09-28 14:45:05 +02:00
Robin Gareus
dd4a1a6d73
Set thread priority relative to backend
...
This also removed direct calls to backend real_time_priority
for good measure.
2024-09-28 04:15:39 +02:00
Robin Gareus
395833e4f8
Always use PBD API for thread priorities
2024-09-28 03:58:48 +02:00
Robin Gareus
0b5a197f76
NO-OP: whitespace
2024-09-28 03:16:57 +02:00
Robin Gareus
d089f38481
Use config variable to set IOTask thread policy
2024-09-28 03:16:54 +02:00
Robin Gareus
dcd79f3135
Debug Backend thread creation
2024-09-28 03:16:50 +02:00
Robin Gareus
aeb4f925c6
PBD pthreads: allow unlimited stacksize
2024-09-28 03:16:45 +02:00
Robin Gareus
e8c67408bb
Impose stack limit on backend threads (freewheeling, MIDI poll)
2024-09-28 03:16:42 +02:00
Robin Gareus
e8445d13ec
Require thread name to be passed to PBD::Thread and store thread
2024-09-28 03:16:30 +02:00
Robin Gareus
88a24ae8e5
Let PBD::Thread set thread-name
2024-09-28 03:16:07 +02:00
Robin Gareus
538a8cbccc
Consolidate calls to `pthread_create' (2/2)
2024-09-28 03:16:02 +02:00
Robin Gareus
8d3ebde60e
Distinguish Threads and ThreadName debugging
...
This also allows for -DThread to enable both.
We celebrate the 128th debug bit and look forward to
the next 64!
2024-09-28 03:15:36 +02:00
Robin Gareus
c4fdd5356c
Enable debugging for stored threads
2024-09-28 03:14:16 +02:00
Robin Gareus
301777e7fe
Remove cruft
2024-09-27 18:03:11 +02:00
Robin Gareus
71a3161252
Error handling for 3751d20ce
2024-09-27 17:20:42 +02:00
Robin Gareus
3751d20ce9
Use dedicated thread to start export timespans #9798
...
This addresses an issue with creating a one-shot thread
directly from the realtime callback, which can be problematic
on Windows.
2024-09-27 06:00:15 +02:00
Robin Gareus
d8e4e7b259
Fix calculating intersection of waveform rectangle
...
see also 68eb63e0c8
2024-09-27 02:54:35 +02:00