kfr icon indicating copy to clipboard operation
kfr copied to clipboard

NaN caught when computing momentary loudness over negative zeros

Open kakyoism opened this issue 5 years ago • 2 comments

I got a problem where if the buffer fed to ebu128's packet contains all negative zeros, the momentary loudness will be nan.

Is this by design? Does kfr accept negative zeros as input data at all?

kakyoism avatar Aug 21 '20 02:08 kakyoism

Could you give more details about your compiler and target cpu architecture/compiler flags?

samuelriddle avatar Sep 01 '20 19:09 samuelriddle

Target platform: iOS (arm64) Xcode 11.6 Compiler: Apple clang version 11.0.3 (clang-1103.0.32.62)

CMake command

cmake -GXcode \
        -DENABLE_TESTS=ON \
        -DCMAKE_BUILD_TYPE=Release \
        -DCMAKE_TOOLCHAIN_FILE="$ProjDir"/cmake/ios.cmake \
        -DIOS_PLATFORM=OS64 \
       "$ProjDir"

Then

    xcodebuild -project kfr.xcodeproj \
        -scheme kfr_dft \
        -configuration Release \
        -destination "platform=iOS,name=$DEVICE" \
        build

No custom compiler tweaks were done to the generated Xcode project.

kakyoism avatar Sep 02 '20 10:09 kakyoism

Closed due to inactivity. Feel free to reopen if the problem still exists.

dancasarin avatar Jun 27 '23 19:06 dancasarin