mirror of
https://github.com/mikeoliphant/neural-amp-modeler-lv2.git
synced 2026-05-07 04:00:09 +02:00
Try to use atom:path to get model path
This commit is contained in:
+5
-17
@@ -23,26 +23,14 @@ set_target_properties(neural_amp_modeler
|
||||
|
||||
# Compile Options
|
||||
|
||||
option(FORCE_DISABLE_DENORMALS "Disable denormal numbers before processing" ON)
|
||||
target_compile_definitions(neural_amp_modeler
|
||||
PRIVATE
|
||||
"$<$<CONFIG:RELEASE>:NDEBUG>"
|
||||
"$<$<BOOL:${FORCE_DISABLE_DENORMALS}>:FORCE_DISABLE_DENORMALS>"
|
||||
)
|
||||
|
||||
# Architecture
|
||||
if (
|
||||
FORCE_DISABLE_DENORMALS
|
||||
AND CMAKE_SYSTEM_PROCESSOR MATCHES "(x86_64)|(i386)|(i686)|(AMD64)"
|
||||
)
|
||||
if (MSVC)
|
||||
target_compile_options(neural_amp_modeler PRIVATE /arch:SSE2)
|
||||
else()
|
||||
target_compile_options(neural_amp_modeler PRIVATE -msse3)
|
||||
endif()
|
||||
if (MSVC)
|
||||
target_compile_options(neural_amp_modeler PRIVATE /Ot )
|
||||
else()
|
||||
target_compile_options(neural_amp_modeler PRIVATE -msse3)
|
||||
endif()
|
||||
|
||||
|
||||
|
||||
# Platform
|
||||
|
||||
if (CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
||||
|
||||
+1
-6
@@ -48,12 +48,7 @@ static LV2_Handle instantiate(
|
||||
|
||||
static void connect_port(LV2_Handle instance, uint32_t port, void* data) {
|
||||
auto nam = static_cast<NAM::Plugin*>(instance);
|
||||
constexpr uint32_t misc_port_cnt = sizeof(nam->ports)/sizeof(void*);
|
||||
if (port >= misc_port_cnt)
|
||||
{
|
||||
}
|
||||
else
|
||||
*(reinterpret_cast<void**>(&nam->ports)+port) = data;
|
||||
*(reinterpret_cast<void**>(&nam->ports)+port) = data;
|
||||
}
|
||||
|
||||
static void activate(LV2_Handle) {}
|
||||
|
||||
Reference in New Issue
Block a user