summaryrefslogtreecommitdiffstats
path: root/src/engine/enginevumeter.cpp
AgeCommit message (Collapse)Author
2021-05-24Use std math functions and remove #defines from fpclassify.hUwe Klotz
2020-12-15Add missing braces around single-line statementsJan Holthuis
2020-12-07Slimdown moc_compilation.cppDaniel Poelzleithner
The moc_compilation file became unbearable large, easily taking 10 minutes to compile whenever a Q_OBJECT changes. AUTOMOC scans for <basename>_moc.cpp includes and does not add the file to the moc_compilation whenever it is included in the propper cpp file. After this patch, moc_compilation.cpp is empty and the mocs are compiled with the approptial cpp, increasing recompile speeds by a factor of 10 when just a header file changed.
2020-11-19Pass non-trivial/large function args by referenceJan Holthuis
Fixes a bunch of `-Wclazy-function-args-by-ref` warnings. See https://github.com/KDE/clazy/blob/master/docs/checks/README-function-args-by-ref.md for details. Most of these changes are automated, using the clazy fixit by setting the `CLAZY_EXPORT_FIXES` before compilation and then running: $ mkdir /tmp/patch $ find ../src -iname "*.yaml" -exec mv {} /tmp/patch \; $ clang-apply-replacements /tmp/patch
2020-10-27Use ControlObject::toBool() method to fix -Wfloat-conversion errorsJan Holthuis
This fixes a bunch of warnigs regarding implicit casts from double to bool.
2020-09-25engine/enginevumeter: Use constexpr instead of DEFINESJan Holthuis
2017-08-27Removed unused fields from GroupFeatureState and scale length by secondsDaniel Schürmann
2016-04-27Replace use of "slave" with "proxy" or "follower" everywhere.RJ Ryan
2016-04-27Move all Control classes to src/control.RJ Ryan
2015-12-27Move SampleUtil and friends to src/util.RJ Ryan
Also fix some include orders here and there.
2015-11-07Reset vu-meter when deck becomes inactive, fixes Bug #1511932Daniel Schürmann
2015-08-14Removed CLIPPING_BOTH from CLIP_STATUS enum in SampleUtil.Ferran Pujol Camins
2015-08-14Renamed CLIPPING enum to CLIP_STATUS in SampleUtil.Ferran Pujol Camins
2015-08-13Clarified clipping calculation using a new CLIPPING enum.Ferran Pujol Camins
2015-08-12EngineVuMeter: Optimized PeakIndicator CO calculation.Ferran Pujol Camins
2015-08-08Added "PeakIndicatorL" and "PeakIndicatorR" ControlObjects.Ferran Pujol Camins
2015-03-02fix obvious twist of R/L VU meterDaniel Schürmann
2014-11-07Use QString instead of char* in ConstructorMax Linke
This should replace all appearances of `const char*` with a `QString` in all classes contained in src/engine. This thing felt like fighting against a hydra -.-
2014-04-25Move "#pragma intrinsic(fabs)" calls to util/math.h.RJ Ryan
2014-04-25Refactor use of math and other headers across the codebase.RJ Ryan
* Delete mathstuff.h and defs.h. * Move typedefs into util/types.h. * Move definitions into util/defs.h. * Use std::min and std::max for math_min and math_max. * Replace math_clamp with a template function to prevent repeated sub-expressions. * Add a Result enum for SoundSource::open() and SoundSource::parseHeader(). * Misc. other header-related cleanups.
2014-04-22Merge remote-tracking branch 'upstream/master' into process_in_outDaniel Schürmann
Conflicts: src/engine/enginemaster.cpp
2014-04-21Changed EngineObject interface to use a common in/out buffer.Daniel Schürmann
This clarifies code in the implemeting objects. It was a cause of bug, fixes now in EngineVinylSoundEmu and EngineFilterBlock.
2014-04-20Remove redundant nop check in enginevumeterDaniel Schürmann
2014-04-12reduce VU sample rate to 30 to match half of common dispaly frame rateDaniel Schürmann
2014-04-12Make PeakIndicator duration independend fro buffer size and sample rateDaniel Schürmann
2014-04-12moved preak indicator init to reset()Daniel Schürmann
2014-04-12moved PeakIndicator CO to EngineVuMeter and removed clamping from input enginesDaniel Schürmann
2014-03-30Collect features from groups and expose them to effect processors.RJ Ryan
2014-02-11reset vuMeter when EnginAux is not activeDaniel Schürmann
2013-12-21Refactor the engine to process samples in the range of [-1.0, 1.0]. Fixes ↵RJ Ryan
Bug #1204039. * Move Vinyl Control pre-amp to VinylControlXwax (no longer affects microphone/passthrough). * Switch PortAudio input sample format to paFloat32. * Remove SHRT_MAX conversions on input and output samples. * Update VUMeters, clipping, and dithering code to deal with the new ranges. * Clean up EngineMicrophone/EnginePassthrough/EngineDeck handling of inputs. * Update tests to deal with the new sample ranges. This does not change SoundSource. SoundSources still read 16-bit samples and we simply divide by SHRT_MAX in AnalyserQueue and CachingReaderWorker. A future performance improvement can remove this and use the native decoder API to request normalized samples directly.
2013-12-19Fix ugly const-casting required by EngineObject API.RJ Ryan
2013-06-19Moving mixxx/* to the root. A new era begins!RJ Ryan