mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-02-03 05:14:44 +01:00
bugfix
This commit is contained in:
parent
7cfc30ee6e
commit
d5a9538d0c
@ -83,6 +83,9 @@ namespace dsp::loop {
|
|||||||
amp = (inAmp > amp) ? ((amp * _invAttack) + (inAmp * _attack)) : ((amp * _invDecay) + (inAmp * _decay));
|
amp = (inAmp > amp) ? ((amp * _invAttack) + (inAmp * _attack)) : ((amp * _invDecay) + (inAmp * _decay));
|
||||||
gain = std::min<float>(_setPoint / amp, _maxGain);
|
gain = std::min<float>(_setPoint / amp, _maxGain);
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
gain = 1.0f;
|
||||||
|
}
|
||||||
|
|
||||||
// If clipping is detected look ahead and correct
|
// If clipping is detected look ahead and correct
|
||||||
if (inAmp*gain > _maxOutputAmp) {
|
if (inAmp*gain > _maxOutputAmp) {
|
||||||
|
@ -10,6 +10,7 @@ endif ()
|
|||||||
add_library(${PROJECT_NAME} SHARED ${SRC})
|
add_library(${PROJECT_NAME} SHARED ${SRC})
|
||||||
target_link_libraries(${PROJECT_NAME} PRIVATE sdrpp_core)
|
target_link_libraries(${PROJECT_NAME} PRIVATE sdrpp_core)
|
||||||
target_include_directories(${PROJECT_NAME} PRIVATE "${SDRPP_CORE_ROOT}/src/")
|
target_include_directories(${PROJECT_NAME} PRIVATE "${SDRPP_CORE_ROOT}/src/")
|
||||||
|
set_target_properties(${PROJECT_NAME} PROPERTIES PREFIX "")
|
||||||
|
|
||||||
# Set compile arguments
|
# Set compile arguments
|
||||||
target_compile_options(${PROJECT_NAME} PRIVATE ${SDRPP_MODULE_COMPILER_ARGS})
|
target_compile_options(${PROJECT_NAME} PRIVATE ${SDRPP_MODULE_COMPILER_ARGS})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user