M3: offline-render capture spike (master-mix / time-selection)
ICaptureBackend/CaptureRequest seam + OfflineRenderBackend driving snapshotted RENDER_* with dither/normalize forced off for bit-identical output, RenderFailed via filesystem check, and a pure capture_paths lib with tests. Spike action registered.
This commit is contained in:
+14
-1
@@ -28,6 +28,14 @@ target_include_directories(bank_model PUBLIC src)
|
||||
add_library(peaks STATIC src/peaks.cpp)
|
||||
target_include_directories(peaks PUBLIC src)
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# 2b) Pure capture-path arithmetic — NO REAPER, NO SWELL. Bank-folder / unique
|
||||
# file-name / project-relative path derivation for the capture shell (M3).
|
||||
# Split out so the fiddly path logic is unit-tested outside the DAW.
|
||||
# ---------------------------------------------------------------------------
|
||||
add_library(capture_paths STATIC src/capture_paths.cpp)
|
||||
target_include_directories(capture_paths PUBLIC src)
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# 3) Standalone tests for the pure modules (run without launching REAPER).
|
||||
# ---------------------------------------------------------------------------
|
||||
@@ -40,13 +48,18 @@ add_executable(peaks_tests tests/test_peaks.cpp)
|
||||
target_link_libraries(peaks_tests PRIVATE peaks)
|
||||
add_test(NAME peaks_tests COMMAND peaks_tests)
|
||||
|
||||
add_executable(capture_paths_tests tests/test_capture_paths.cpp)
|
||||
target_link_libraries(capture_paths_tests PRIVATE capture_paths)
|
||||
add_test(NAME capture_paths_tests COMMAND capture_paths_tests)
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# 4) The REAPER extension — a loadable module (dlopen'd by REAPER, not linked).
|
||||
# ---------------------------------------------------------------------------
|
||||
add_library(reaper_reasampler MODULE
|
||||
src/main.cpp
|
||||
src/capture.cpp
|
||||
)
|
||||
target_link_libraries(reaper_reasampler PRIVATE bank_model)
|
||||
target_link_libraries(reaper_reasampler PRIVATE bank_model capture_paths)
|
||||
target_include_directories(reaper_reasampler PRIVATE ${SDK_INC} ${WDL_INC})
|
||||
set_target_properties(reaper_reasampler PROPERTIES PREFIX "" OUTPUT_NAME "reaper_reasampler")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user