pull/991/head
AlexandreRouma 2023-02-15 15:39:34 +01:00
rodzic 7cfc30ee6e
commit d5a9538d0c
2 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -83,6 +83,9 @@ namespace dsp::loop {
amp = (inAmp > amp) ? ((amp * _invAttack) + (inAmp * _attack)) : ((amp * _invDecay) + (inAmp * _decay));
gain = std::min<float>(_setPoint / amp, _maxGain);
}
else {
gain = 1.0f;
}
// If clipping is detected look ahead and correct
if (inAmp*gain > _maxOutputAmp) {

Wyświetl plik

@ -10,6 +10,7 @@ endif ()
add_library(${PROJECT_NAME} SHARED ${SRC})
target_link_libraries(${PROJECT_NAME} PRIVATE sdrpp_core)
target_include_directories(${PROJECT_NAME} PRIVATE "${SDRPP_CORE_ROOT}/src/")
set_target_properties(${PROJECT_NAME} PROPERTIES PREFIX "")
# Set compile arguments
target_compile_options(${PROJECT_NAME} PRIVATE ${SDRPP_MODULE_COMPILER_ARGS})