3ff81ad574
Remove unnecessary dependents
2022-05-29 15:29:54 +02:00
0fe87a2c04
Moved Pcm class tests to the unit test project.
...
Added a helper function to reset autoleveler, made it public as might come in handy if there's a gap (pause/resume, new track etc.) in the audio data.
2022-04-14 15:59:06 +02:00
4c597da56a
Change API for adding to Pcm
2022-04-06 14:33:19 +02:00
63fe41bbb9
Fix code in macro branch
2022-04-06 14:33:19 +02:00
b65b6a8ecd
Fix easy stuff clang-tidy complains about
2022-04-06 14:33:19 +02:00
1f4f664f58
Remove unused smoothing variable
2022-04-06 14:33:19 +02:00
187f696289
Improve const correctness
...
We should consider making m_freqL and m_freqR mutable,
as there is no outwardly visible effect at the place these are changed
(UpdateFftChannel).
This would also allow us to make GetSpectrum const,
which is more intuitive.
2022-04-06 14:33:19 +02:00
f7e29b2778
Make offset and stride compile time parameters
2022-04-06 14:33:19 +02:00
e293899b99
Remove unnecessary stride parameter
2022-04-06 14:33:19 +02:00
1b709c513e
Fix missing trailing return type
2022-04-06 14:33:19 +02:00
05f9e9124a
Factor out common AddPcm structure
2022-04-06 14:33:19 +02:00
9207d99d79
Use trailing return types
...
Should we do this for void too?
Clang-tidy doesn't flag it, but could be more consistent.
2022-04-06 14:33:19 +02:00
a92686c754
Update headers
2022-04-06 14:33:19 +02:00
7740116f26
Fix casings (PCM.cpp)
2022-04-06 14:33:19 +02:00
5d80bf9f57
Fix casing (PCM.hpp)
2022-04-06 14:33:19 +02:00
fc3ad4802d
Use correct rdft function
2022-03-28 12:22:54 +02:00
de73776651
Use class keyword, as done in forward declaration
2022-03-28 12:22:54 +02:00
33126f5df6
Remove smoothing logic
2022-03-28 12:22:54 +02:00
8313146a01
Remove unnecessary loop
2022-03-28 12:22:54 +02:00
c8b2a82351
Use types specifying bitcount for addPCMX argument
2022-03-28 12:22:54 +02:00
fd0f355ebb
Use .size() in argument to _copyPCM where possible
2022-03-28 12:22:54 +02:00
ff8e32d00b
Give function overload more descriptive name
2022-03-28 12:22:54 +02:00
e562aa524d
Use guard instead of logic inside conditional
2022-03-28 12:22:54 +02:00
6557b528e8
Change name of constrain to clamp
2022-03-28 12:22:54 +02:00
3f107a3594
Remove iostream include
2022-03-28 12:22:54 +02:00
ec666b8032
Remove empty ctor and dtor
2022-03-28 12:22:54 +02:00
610117ff57
Remove heap allocation for AutoLevel
2022-03-28 12:22:54 +02:00
4053457dbd
Correct rdft asserts
2022-03-28 12:22:54 +02:00
1178ddfed5
Apply formatting
2022-03-28 12:22:54 +02:00
27798317ee
Give uncased variables a casing
...
Picked camelCase.
These variables will now be picked up on if we standardize our casing.
2022-03-28 12:22:54 +02:00
e63fc1f88c
Ensure array size correctness of rdft calls
2022-03-28 12:22:54 +02:00
02be000d97
Make w and ip arrays
2022-03-28 12:22:54 +02:00
a533f2876d
Use static_assert instead of #error directive
2022-03-28 12:22:54 +02:00
db209a5808
Use std::max instead of fmax
2022-03-28 12:22:54 +02:00
969dcec7a2
Use std::abs instead of fabs
2022-03-28 12:22:54 +02:00
3c133f34aa
Use std::array in PCM tests
2022-03-28 12:22:54 +02:00
198a031f28
Remove unused member function freePCM
2022-03-28 12:22:54 +02:00
6458c0e8df
Move member initialization from initializer list
2022-03-28 12:22:54 +02:00
631e764691
Move AutoLevel's initialization from constructor
2022-03-28 12:22:54 +02:00
fd25439653
Use size_t for loop indices
2022-03-28 12:22:54 +02:00
91347f95d3
Change raw arrays to std::array
2022-03-28 12:22:54 +02:00
ac29ef99eb
Not needed with debugging here. ( #481 )
...
Co-authored-by: Mischa Spiegelmock <me@mish.dev >
2021-07-04 16:35:59 +03:00
4184f237bd
Added case-insensitive search
...
Fixed Windows Debug build
2021-04-08 11:26:05 +03:00
10faca9abf
Cleanup PCM interface ( #467 )
...
* rewrite PCM interface
* AutoLeveler
* perf - quick check for no equations
* cleanup use of BeatDetect.beatSensitivity
Co-authored-by: Mischa Spiegelmock <me@mish.dev >
2021-02-20 13:52:17 -08:00
b779be76ee
attempt to improve freq responsiveness
2020-01-25 17:26:40 -08:00
5b25b889a0
handle 2ch floating point PCM data ( #150 )
...
separate stereo channels when using PA_SAMPLE_FLOAT32LE
2019-01-16 20:07:30 +00:00
d4d74f6d05
Build warnings cleanup
2018-11-17 11:42:28 +01:00
2ce0e70a98
memleaks fixes
2018-06-10 22:02:06 +02:00
a90e7b46c8
ahh, cmake 2.6 is wild stuff. hiding from it.
...
git-svn-id: https://projectm.svn.sourceforge.net/svnroot/projectm/personal/carm/represet@1163 6778bc44-b910-0410-a7a0-be141de4315d
2008-09-17 05:02:49 +00:00
aa87726bb2
renamed projectM-engin libprojectM
...
git-svn-id: https://projectm.svn.sourceforge.net/svnroot/projectm/trunk@1116 6778bc44-b910-0410-a7a0-be141de4315d
2008-07-22 01:08:53 +00:00