9dca6e7857
More cleanups in RenderFrame* methods.
2022-06-06 18:50:50 +02:00
f2e0b09bde
Added a FIXME for later improvements of async preset loading.
2022-06-06 18:50:50 +02:00
7334c8085b
A few cleanups in the RenderFrame functions.
2022-06-06 18:50:50 +02:00
1e25e2119c
Removed unused "interface" enum.
2022-06-06 18:50:50 +02:00
03f202859b
Moved inline implementations to ProjectM.cpp.
2022-06-06 18:50:50 +02:00
1af2b97e50
Remove ProjectM::DestroyPresetTools
...
Unique pointers are destroyed automatically during destruction of the class and the method isn't called from anywhere else.
2022-06-06 18:50:50 +02:00
0a271b8086
Remove unnecessary/dead code from ProjectM::InitializePresetTools.
...
Function is only called from constructors, so failing to initialize important subsystems would leave projectM unusable, and we can simply let the exception bubble up to the caller. Such exceptions are already being caught in the C wrapper.
2022-06-06 18:50:50 +02:00
576654d676
Build fix: rename a few missed instances of _settings to m_settings
2022-06-06 18:50:50 +02:00
2c2a830843
Reformatted ProjectM class code
2022-06-06 18:50:50 +02:00
5e104093b6
Add a space before trailing comments.
...
Comments being slammed right against the code looks weird.
2022-06-06 18:50:50 +02:00
db6959c3ab
Cleaned up member function parameters.
2022-06-06 18:50:50 +02:00
60f93d7de1
Use trailing return types.
2022-06-06 18:50:50 +02:00
b7e3943cc2
Move methods only used internally into private section.
2022-06-06 18:50:50 +02:00
73c6d2793c
Fixed member casing in ProjectM class.
2022-06-06 18:50:50 +02:00
5e5b35fdb8
Replaced behaviour FLAG_* constants with an enum.
2022-06-06 18:50:50 +02:00
27b1a57b82
Removed unimplemented members.
2022-06-06 18:50:50 +02:00
3cc3667347
Moved class members to bottom, replaced some types and added default initializers.
...
Mostly replaced raw pointers with std::unique_ptr for easier memory management. Probably not needed for many of those classes, but was the least intrusive change for now.
2022-06-06 18:50:50 +02:00
7488250cab
Removed framerate limiting code from ProjectM class.
...
The library should not hold up any external render loop. Waiting for vsync or achieving a target FPS value should be done by the outside application after presenting the render result.
2022-06-06 18:50:50 +02:00
c9b8d5e76a
Renamed ProjectM class members to have m_ prefix.
2022-06-06 18:50:50 +02:00
1385adb368
Cleaned up includes in ProjectM class.
2022-06-06 18:50:50 +02:00
f2b04480c0
Renamed projectM class to ProjectM
2022-06-06 18:50:50 +02:00
5da6ff1b29
Added missing OpenMP library in projectM_shared target.
...
Only required on macOS, but still important.
2022-05-29 15:49:52 +02:00
90bf1200bd
Fix CMake configuration SDL2 version output for the test UI.
2022-05-29 15:49:52 +02:00
eb96d22a63
Use CMake's FindOpenMP module and link to the target if found.
...
Also export the target for linking the static libprojectM library in downstream projects. This is not required for the shared lib, and in this case, missing OpenMP compiler/linker support will not fail the build.
2022-05-29 15:49:52 +02:00
a78a43d112
Add comment for future change
2022-05-29 15:49:14 +02:00
628bf3dad9
Rename frequency spectrum variables
2022-05-29 15:49:14 +02:00
640023b805
Improve const/noexcept correctness
2022-05-29 15:49:14 +02:00
0d8bb362bc
Move method definitions to .cpp
2022-05-29 15:49:14 +02:00
8be7f4589c
Factor out more common structure
2022-05-29 15:49:14 +02:00
15d2aa61bc
Remove unneeded isnan checks
...
These values would only be nan if the dft yielded nans.
This should never happen as long as the sound input isn't something
weird, like nan or +-inf.
2022-05-29 15:49:14 +02:00
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