Commit Graph

116 Commits

Author SHA1 Message Date
Stephen Anthony bff2fdd817 Fix spelling mistake in nearestNeightBour.
Use new C++20 feature 'using enum ...' in switch statements.
I'm not convinced this is best in all cases; for now I use it sparingly.
2024-05-10 21:21:03 -02:30
Stephen Anthony a8a23f6112 Convert stringstream::str() to stringstream::view() where applicable. 2024-05-10 20:33:04 -02:30
Stephen Anthony ce6cc2ef02 Move codebase to requiring C++20, and fix resultant non-standard code. 2024-05-08 19:13:23 -02:30
Stephen Anthony 4c04c4baad Fixes for suggestions from clang-tidy. 2024-05-01 17:25:29 -02:30
Stephen Anthony a404902294 Bumped copyright for 2024. Happy New Year for anyone following these commits! 2024-01-01 12:38:25 -03:30
Stephen Anthony 78187876db clang-tidy: convert 'endl' to '\n' for performance. 2023-11-16 14:34:02 -03:30
Stephen Anthony 27c3e09b94 clang-tidy: Remove redundant header includes. 2023-11-16 12:26:39 -03:30
Stephen Anthony 9cc804d0e0 Updated files to 2023; an early Happy New Year to anyone reading this logs. 2022-12-30 14:11:04 -03:30
Stephen Anthony d1767d4d93 More 'const char* const' fixes. 2022-11-13 12:31:36 -03:30
Stephen Anthony 7de717114c Separate sound mute and enable functionality.
Mute simply changes the sound level; disabling sound completely is now done separately.
2022-10-09 21:28:35 -02:30
Stephen Anthony d893b12807 Some refactoring of SoundSDL2, placing WAV handling in its own inner class. 2022-10-01 21:06:12 -02:30
Stephen Anthony 129ec5886a First pass at separating Sound mute/pause functionality.
This will need lots of testing, since it touches many parts of the code.
2022-09-24 21:33:39 -02:30
Stephen Anthony 518f8eb5bd Fixed crash in resampling WAV playing; forgot to create an array.
Make WAV resampling default behaviour.
2022-09-19 01:33:36 -02:30
Stephen Anthony 3b073054ff Use unique_ptr instead of C-style allocations. 2022-09-18 16:56:57 -02:30
Thomas Jentzsch 79bf02f5e3 eliminated frequent memory allocation while playing WAV files 2022-09-16 15:18:24 +02:00
Thomas Jentzsch fbcf4670b9 fixed WAV echo problem and enabled on-the-fly resampling 2022-09-15 18:34:37 +02:00
Thomas Jentzsch 5e09f486af added on-the-fly WAV resampling (disabled, causes echo) 2022-09-15 15:21:10 +02:00
Thomas Jentzsch 1263f28e49 removed debug code and cast warning 2022-09-14 19:34:30 +02:00
Thomas Jentzsch 067cf7e021 fixed interrupted WAV continuing to play at restart 2022-09-14 17:38:47 +02:00
Thomas Jentzsch c53e0eabcb fixed Sound muting for WAV files 2022-09-14 13:39:24 +02:00
Stephen Anthony d488b9c860 More 'const' conversion, with help from clang-15. 2022-09-13 22:52:59 -02:30
Thomas Jentzsch a647b2ba7f implemented gapless playback for WAV files (KidVid) 2022-09-13 15:24:19 +02:00
Thomas Jentzsch 69e61fb4e5 refactored KidVid code a bit
updated doc
2022-09-04 18:40:46 +02:00
Stephen Anthony 2296b334dc Minor formatting cleanups for recent commits. 2022-09-03 20:10:22 -02:30
Thomas Jentzsch 21f3b319c2 added WAV file volume adjustment (resolves #77) 2022-09-03 20:56:38 +02:00
Stephen Anthony 1c38d3e57a Fix a few minor compiler warnings.
Make WAV play methods not pure virtual, so we can change them without affecting libretro.
2022-09-03 14:51:20 -02:30
Stephen Anthony b1234dd086 Fix minor compile warning. 2022-09-03 13:13:29 -02:30
Thomas Jentzsch ba6b32aa21 added WAV playing and adapted KidVid code accordingly 2022-09-03 16:54:33 +02:00
Stephen Anthony fc0a8c91a8 Second pass at fixes for suggestions from clang-tidy. 2022-08-21 13:53:52 -02:30
Stephen Anthony f987c3f72c Yay, got clang-tidy working again. First pass at fixing suggestions. 2022-08-20 15:32:15 -02:30
Stephen Anthony 6a74c61ac5 First pass at fixing warning from Visual Studio (const and C-style casts).
This isn't all the code, just checking in the WIP so far.
It's not exciting work like new features, etc, but is required to keep the codebase clean.
I actually find it kind of relaxing; taking a short break from new features.
2022-03-27 18:09:55 -02:30
Stephen Anthony 11d2f34bcb Update copyright to 2022. Happy New Year! 2021-12-31 16:07:17 -03:30
Stephen Anthony 21438a82cc Yearly update to copyright for 2021. 2021-01-05 18:42:43 -03:30
Stephen Anthony b36729a825 Make variables initialized in c'tor initialization list use brace-syntax.
- This is on the advice of one of the static analyzers we use.
 - More classes have to be converted; this is only the first pass.
2020-12-20 12:06:10 -03:30
Stephen Anthony 2f5166e81e Various fixes for suggestions from cppcheck. 2020-12-18 19:25:27 -03:30
thrust26 e93e4b8fdb minimized UI redraws and renderings when message is displayed
refactored message creation
2020-11-12 10:43:04 +01:00
Stephen Anthony 424eb6d718 Fix minor warnings from clang static analyzer. 2020-11-09 16:01:36 -03:30
Stephen Anthony f3503d22d9 libretro: Fix compile error with recent sound code changes. 2020-07-27 10:53:43 -02:30
thrust26 75a74e0be5 added option to select audio device (resolves #682) 2020-07-27 09:43:31 +02:00
thrust26 16a3280b56 added four global hotkeys which allow selecting and changing several adjustable settings (addresses #631) 2020-05-16 09:50:16 +02:00
thrust26 c06a60d704 added global hotkeys (pageup/down) for current displayed setting (or volume) 2020-05-14 21:18:55 +02:00
thrust26 a6df70db89 a little bit of polishing 2020-05-14 11:12:56 +02:00
thrust26 020dea9cc8 added UI messages with gauge bars for variable values (partially addresses #631) 2020-05-13 09:32:11 +02:00
Stephen Anthony 9ad47ae5f3 Updated copyright to 2020. Happy New Year to anyone reading this! 2019-12-31 13:48:56 -03:30
Stephen Anthony 0c6f8bf381 More default initialization updates. 2019-12-28 22:36:40 -03:30
Stephen Anthony 36683adec1 And yet more fixes for warnings from clang-tidy. 2019-12-28 00:45:09 -03:30
Stephen Anthony eeb8363df6 More fixes for warnings from clang-tidy.
Sorry if these are all over the place; I'm fixing them in the order that the tool finds them.
2019-12-24 17:50:27 -03:30
Stephen Anthony b6122f136f More fixes for issues reported by cppcheck. 2019-12-15 12:32:49 -03:30
Stephen Anthony 12c1916200 Some fixes for issues found in cppcheck. 2019-12-15 11:23:14 -03:30
Thomas Jentzsch 05cecb95b9 refactored logging and removed magic numbers 2019-08-14 12:01:15 +02:00