Hielke Morsink
e2da19f0f7
Add missing includes
2022-07-29 18:45:10 +02:00
Michał Janiszewski
5688eb511d
Use SDL_free to release SDL_RWops ( #17591 )
2022-07-22 22:28:58 +00:00
Ted John
00014adec9
Fix #17462 : Crash when zooming or moving around park
...
Lock the mixer while disposing an audio source.
2022-06-28 00:25:57 +01:00
Ted John
585ebed600
Fix #17297 : Crash when switching language ( #17370 )
...
* Refactor all uses of IAudioChannel and the audio mixer.
* Use shared_ptr to avoid dead pointers hanging about.
* Reload particular audio channels where necessary after object reload.
2022-06-27 17:41:53 +01:00
Ted John
704e68a9b4
Fix deadlock due to ogg stream prematurely ending
2022-06-08 00:28:44 +01:00
Ted John
5be41b65f4
Fix flac decoding
2022-06-06 23:41:15 +01:00
Ted John
03d7bb0995
Removed unused variable
2022-06-06 23:41:15 +01:00
Ted John
dc47f4296f
Add way of disabling flac and vorbis support
2022-06-06 23:41:14 +01:00
Ted John
95661f4df2
Refactor audio sources
2022-06-06 23:41:14 +01:00
Ted John
274bd921b3
Add ogg vorbis support
2022-06-06 23:41:14 +01:00
Ted John
73ac7954f1
Add flac support
2022-06-06 23:41:14 +01:00
Ted John
bb102cc1ec
Remove null audio source and fix crash on exit
2022-05-23 23:06:41 +01:00
Ted John
6465d42b57
Apply code review changes, auto*
2022-05-23 22:24:56 +01:00
Ted John
a2e6691ac2
Add new audio objects for loading sounds
2022-05-23 22:24:56 +01:00
Hielke Morsink
956e77f4c3
Use [[nodiscard]] for allocator and RAII functions ( #15244 )
2021-08-23 20:09:43 +02:00
ZehMatt
2a3b25af9a
Mark values constexpr in FileAudioSource
2021-07-30 21:31:10 +03:00
Hielke Morsink
c887a049d2
Fix various Cppcheck warnings ( #15081 )
2021-07-24 23:41:50 +02:00
Ted John
d9b8413ec4
Use IStream for zip streaming
2021-01-27 18:45:27 +00:00
Ted John
2f39442d25
Implement ride music objects and refactor
2021-01-27 18:45:27 +00:00
skdltmxn
b0a8ebc808
Refactor to use push_back more efficient ( #13726 )
2021-01-08 20:59:55 +00:00
ζeh Matt
acf71315b5
Cleanup variables usage and initialize them
2021-01-06 22:29:40 +01:00
Gymnasiast
31d20cefb2
Rename rain to weather where appropriate
...
Co-authored-by: Brett Penzer <brettpenzer123@live.co.uk>
2020-09-14 21:57:54 +02:00
Matt
0dc43d66e4
Remove the use of INTERFACE macro and macro its self
2020-08-05 16:30:44 +02:00
Matt
30376085cf
Include missing headers
2020-08-05 16:29:29 +02:00
pizza2004
156be224f9
Close #12399 : Refactor MIXER_GROUP to strong enum ( #12531 )
2020-08-03 20:51:12 -03:00
Aaron van Geffen
7b5087f057
Update copyright year to 2020
2020-07-21 15:04:34 +02:00
Tom Lankhorst
2d0e7bdfd8
openrct2-ui Audio clean-up and style/usage fixes ( #10115 )
...
* openrct2-ui Audio clean-up and style/usage fixes
Co-authored-by: Gymnasiast <m.o.steenbeek@gmail.com>
Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2020-05-10 10:05:26 -03:00
Tom Lankhorst
da0c586fad
Mark getters in audio layer as [[nodiscard]]
2020-04-24 18:38:11 +02:00
Michał Janiszewski
5f97637d5e
Only suggest final when using non-LTO builds
...
In LTO builds GCC issues the suggestion-warning from linking stage,
when pragmas are already gone and do nothing.
2020-04-21 13:31:01 +02:00
Tulio Leao
57886ad0c7
Use named casts in openrct2-ui/audio/
2020-03-28 17:18:15 -03:00
Tulio Leao
fe6ff2ac94
Use named casts in openrct2-ui/audio/AudioChannel.cpp
2020-03-28 17:18:07 -03:00
Tulio Leao
bb052a784a
Use named casts in openrct2-ui/audio/AudioMixer
2020-03-28 17:17:57 -03:00
Tulio Leao
2bb3a34274
Convert C-style pointer casts to named casts
2020-03-28 16:41:23 -03:00
r0
9f6a944174
Fix #9603 : Don't render audio when master volume is turned off ( #9907 )
2019-08-21 23:36:07 +02:00
Duncan
ab5f5b20cd
Use enum class for RCT2_SOUND ( #9618 )
...
* Use enum class for RCT2_SOUND
* Fix formatting. Fix mistaken declaration.
* Change name of enum to SoundId
* Fix clang format
2019-07-22 19:02:45 +01:00
Aaron van Geffen
2af13904c5
Update copyright notices for 2019. ( #8903 )
2019-03-17 07:16:15 +00:00
Michał Janiszewski
ecfbf60cc4
Drop SDL2/ prefix on includes
...
pkg-config, cmake, all demos and tests define the path with SDL2/
already included.
2019-01-06 17:29:29 +01:00
Hielke Morsink
354d973a48
Use std::size instead of Util::CountOf
2018-11-23 21:59:08 +01:00
Sijmen Schoon
0cdd7c8cc8
Add master sound checkbox and master volume slider
...
Also includes some rewriting of rct_scroll code that I did while
debugging the issue with more than two rct_scrolls in one window. I
decided to leave it in.
2018-08-17 22:14:11 +02:00
Linus Unnebäck
fd07be587a
Remove Math::Clamp in favour of std::clamp
2018-08-12 16:47:12 +01:00
clang-format
b02dfdbc93
Binpack function arguments together
...
Previously when the arguments of a function wouldn't fit on a single line, clang-format would put each argument on its own line instead. By enabling the binpack parameter setting, it tried to fit as many on one line as possible instead.
Co-authored-by: Hielke Morsink <hielke.morsink@gmail.com>
2018-07-23 16:00:22 +02:00
clang-format
ebb17929a7
clang-format UI audio
2018-07-23 16:00:12 +02:00
Michael Steenbeek
1b08fb4e69
Replace our own integer types with standard ones
2018-06-20 17:30:40 +02:00
Michael Steenbeek
ec3a1e575e
Replace Math::Min and Max with std variants
2018-06-20 17:11:35 +02:00
Hielke Morsink
0cf256ac9e
Ready copyright notice for clang-format
...
Clang-format sees the text behind `#pragma region` as code and formats it. Instead of stating the copyright and date there, it's now in the comment block right below it. The text "Copyright" is left in the `#pragma region` line, as clang-format sees it as a single identifier.
I took the opportunity to normalize the dates, and add the copyright notice to the source files where it was missing them (except for third-party and the generated resources.h file).
2018-06-15 14:07:34 +02:00
Michał Janiszewski
320eee0d59
Fix -Wunreachable-code-break and add it to deafult warnings ( #7634 )
2018-06-06 22:30:21 +02:00
Hielke Morsink
8aa122f54e
Use empty initializer lists in the openrct2ui project
2018-06-05 14:37:24 +02:00
Ted John
7dc170ef85
Use shared_ptr for long-life objects
...
Use unique_ptr and shared_ptr for IContext, IPlatformEnvironment, IUiContext, and IAudioContext.
2018-05-11 20:37:48 +01:00
Hielke Morsink
8d10bfb5a1
Add namespace closing comments
2018-05-04 22:54:43 +02:00
Hielke Morsink
bc44792da9
Pack nested namespaces together
2018-05-04 22:54:43 +02:00