Code Monkey home page Code Monkey logo

Comments (6)

ffAudio avatar ffAudio commented on August 11, 2024 1

It should not have been occurred if the config option was set to false.
But since it has been a while everybody had the chance to fix the automatic channel allocation.
I removed that option including the warning. If you don't see any meters, you need to call meterSource.resize(numChannels) in your prepareToPlay or anywhere outside the audio thread.

from ff_meters.

r00tk1ll avatar r00tk1ll commented on August 11, 2024

I have the same warning messages on Microsoft Visual C++ 2019 with JUCE 6.0.7 and the latest version of the ff_meters module.

ff_meters\LookAndFeel\LevelMeterLookAndFeelMethods.h(245): warning C4702: unreachable code ff_meters\LookAndFeel\LevelMeterLookAndFeelMethods.h(102): warning C4702: unreachable code ff_meters\LookAndFeel\LevelMeterLookAndFeelMethods.h(191): warning C4702: unreachable code

Did you find a fix for this?

from ff_meters.

mediawizrd avatar mediawizrd commented on August 11, 2024

from ff_meters.

r00tk1ll avatar r00tk1ll commented on August 11, 2024

Ill keep looking for a way, its just annoying really

from ff_meters.

NickolayGerasimenko avatar NickolayGerasimenko commented on August 11, 2024

the same for me, struggling on how to suppress these warnings

from ff_meters.

NickolayGerasimenko avatar NickolayGerasimenko commented on August 11, 2024

@ffAudio Sorry but I still see this warnings:

C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include\numeric(35,26): warning C4244: '=': conversion from 'double' to '_Ty', possible loss of data
1> with
1> [
1> _Ty=float
1> ] (compiling source file ....\JuceLibraryCode\include_ff_meters.cpp)

  with

1>
1> _Ty=float,
1> _InIt=std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types>>,
1> _Fn=std::plus
[1> ] (compiling source file ....\JuceLibraryCode\include_ff_meters.cpp)
1>D:\Projects\source_elements\sc4\ext\ff_meters\LevelMeter\LevelMeterSource.h(102):`

Looks like it's type cast issue:
if (rmsHistory.size() > 0) return std::sqrt(std::accumulate (rmsHistory.begin(), rmsHistory.end(), 0.0f)

rmsHistory - it's double but 0.0f it's float

Second this error also exists:

return juce::Rectangle ();
}

ff_meters\LookAndFeel\LevelMeterLookAndFeelMethods.h(245): warning C4702: unreachable code

from ff_meters.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.