e1832f20f5
Update identifier namings
2022-05-29 15:49:14 +02:00
0a37412b46
Use std::array instead of raw arrays
2022-05-29 15:49:14 +02:00
b0e1b890d9
Remove unnecessary member variables
2022-05-29 15:49:14 +02:00
58ec4c995b
Clean up intensity calculations
2022-05-29 15:49:14 +02:00
5bd329dc6a
Create class for calculating low-pass values
2022-05-29 15:49:14 +02:00
0ac24d9d9f
Factor out similar structure
2022-05-29 15:49:14 +02:00
6c20de04ea
Remove unused variable
2022-05-29 15:49:14 +02:00
f8fcb0ab79
Fix vol_old not getting updated
2022-05-29 15:49:14 +02:00
de8151e1ac
Remove unused constant
2022-05-29 15:29:54 +02:00
f46ed4aade
Fix last few clang-tidy complaints
2022-05-29 15:29:54 +02:00
35d3112463
Use correct casing
2022-05-29 15:29:54 +02:00
ff86afd817
Remove macro logic I think is unused
2022-05-29 15:29:54 +02:00
0e9478157d
Add comments for eventual compiler bump
2022-05-29 15:29:54 +02:00
d3459aa350
Make many defines into constexprs
2022-05-29 15:29:54 +02:00
2532f1f7f9
Remove unused locale parameter
2022-05-29 15:29:54 +02:00
bb932f5aad
Remove unnecessary templatization
2022-05-29 15:29:54 +02:00
8079f186bf
Remove caseInsensitiveEqual
2022-05-29 15:29:54 +02:00
003b016606
Remove empty macro block
2022-05-29 15:29:54 +02:00
478fb9f04e
Remove last usage of traverse
2022-05-29 15:29:54 +02:00
58bfb1d410
Remove usage of traverseVector
2022-05-29 15:29:54 +02:00
2f2a591375
Remove usage of traverse(Container&)
2022-05-29 15:29:54 +02:00
3ff81ad574
Remove unnecessary dependents
2022-05-29 15:29:54 +02:00
128ade3127
Remove bool macros
2022-05-29 15:29:54 +02:00
d8bd06a041
Remove unused macros
2022-05-29 15:29:54 +02:00
e87f6ec1d3
Apply formatting
2022-05-29 15:29:54 +02:00
f626b73a5b
CMake: Check if SDL2::SDL2 target is aliased and set property on the original target instead
2022-05-20 17:51:59 +02:00
c0b5b1f189
Increased minimum CMake version to 3.15
2022-05-20 17:51:59 +02:00
5583a5e1a8
Changed some declarations and added includes to make the API header compile with C99.
2022-04-15 22:13:45 +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
1769039b08
Deleted old "unit tests" which did nothing useful.
...
Note: This change alone will not configure properly as the test target has no code files.
2022-04-14 15:59:06 +02:00
a027e27af2
Some small fixes to compile against LLVM 12 headers.
2022-04-14 15:58:53 +02:00
e97bf85bf4
Fix "idle" preset by re-enabling custom textures on shapes.
...
Renamed the parameter to "image" and fixed texture wrapping/sizing.
2022-04-14 15:58:40 +02:00
162fd411cd
Removed GLM dependency from shared & static library targets.
...
These targets do not compile any source and thus don't need the include dir, but CMake exports a link-only dependency for the static library, which is also not required as GLM is header-only.
2022-04-11 23:21:04 +03:00
c92f32b4b3
fix comment
2022-04-11 13:47:42 +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
df052d5e38
Fix easy .clang-tidy complaints (PCM.hpp)
2022-04-06 14:33:19 +02:00
5d80bf9f57
Fix casing (PCM.hpp)
2022-04-06 14:33:19 +02:00
fa8da74c54
Use recursive mutex to guard preset switching.
2022-04-06 14:32:55 +02:00
8863a093ef
Replaced pthread API with STL's concurrency library.
...
Multithreading will now also work on Windows while the STL variant is even less verbose, making the code easier to read. Thus enabled threading for all platforms, including emscripten.
2022-04-06 14:32:55 +02:00