Ted John
39a38dc193
Include SDL2 using sub directory
2018-03-09 16:28:47 +01:00
Ted John
0ee3c45d37
Fix #7196 : Crowd Noises Absent
...
Sounds loaded into memory that matched the target audio format were returning a failed result.
2018-02-25 02:40:36 +00:00
Hielke Morsink
55979a3fff
Remove and replace C typedefs
...
`typedef struct/union/enum name { ... } name_again;` is not needed whe compiling C++, moving the name at the back to be in front of the object and removing `typedef` makes it usable the very same way.
This also replaces typedefs with the using keyword. They have better readability, especially for function pointer types, and would allow more flexibility when used with templates.
2018-02-14 09:42:26 +01:00
ZehMatt
4f011163d0
Fix #6667 : Match sample rate to games audio content.
2018-02-11 12:51:33 +01:00
Ted John
cebe13984f
Remove most of remaining memory functions from libopenrct2ui
2018-01-21 11:17:41 +00:00
Ted John
0b8575270c
Refactor memory handling in audio sources
2018-01-21 11:17:40 +00:00
Michael Steenbeek
755add6c9a
Compile localisation folder as C++
2018-01-06 18:32:25 +01:00
Michał Janiszewski
b2bc974fe7
Use nullptr where possible
2018-01-04 06:58:44 +01:00
Michael Steenbeek
b2968ce8b0
Fix #6320 : Crash when CSS1.DAT is absent
2017-09-29 10:43:47 +02:00
Michał Janiszewski
00fd18809c
Move extern "C" {} blocks to headers ( #6282 )
2017-09-18 17:05:28 +02:00
Ted John
6699d0885b
Merge pull request #6065 from IntelOrca/refactor/remove-rct2.c
...
Move remaining functions out rct2.c
2017-07-30 18:09:26 +01:00
Michał Janiszewski
d5e6ab3111
Properly dispose of AudioMixer to plug memleak
2017-07-30 17:21:36 +02:00
Ted John
8b2eb8a13e
Move screen variables to OpenRCT2.h
2017-07-29 20:29:29 +01:00
Ted John
e6e503a853
Move path related functions to Context.cpp
...
- rct2_init_directories
- get_file_path
2017-07-29 20:29:26 +01:00
zsilencer
2385ef1059
Fix incorrect arguments to resampler.
2017-06-29 16:40:00 -06:00
zsilencer
bde3197e79
Fix incorrect resampling rate when at the end of a sound.
2017-06-29 15:43:40 -06:00
Michael Steenbeek
1f00469b26
Replace free+null with SafeFree, allow freeing NULL
...
free(NULL) is perfectly fine, no need to check
2017-06-22 12:49:33 +02:00
Ted John
47e6f1d139
Rename our version of SDL_MIX_MAXVOLUME to MIXER_VOLUME_MAX
...
Keep an assert to make sure its the same as SDL in the mixer. If SDL changes it, we can either change ours or convert the number proportionally.
2017-06-10 17:14:07 +01:00
Michał Janiszewski
79d76759bb
Fix #5516 : Update copyrights for 2017
...
Not all files were necessarily _changed_, but all were touched, see
https://github.com/OpenRCT2/OpenRCT2/pull/4932
2017-06-01 21:55:10 +02:00
Ted John
0440c3deea
Clean up audio.cpp
2017-05-29 22:38:43 +02:00
Ted John
e426c70bbc
Get moved audio code linking
2017-05-29 22:38:43 +02:00
Ted John
d206d181f2
Move audio code to UI project
2017-05-29 22:38:43 +02:00
Ted John
175606ae52
Create new audio context interface
2017-05-29 22:38:43 +02:00