Commit Graph

10 Commits

Author SHA1 Message Date
David Reid baf8830cb0 Update the advanced_config example. 2018-04-29 17:11:44 +10:00
David Reid afb0029da0 Update the advanced config example. 2018-03-11 07:21:07 +10:00
David Reid 53692202a2 Fix memory leaks in the advanced config example. 2018-03-04 10:22:27 +10:00
David Reid 35af204e21 Clean up whitespace. 2017-12-03 17:09:23 +10:00
David Reid 5d0705b34e Check the return value of mal_device_start() in examples. 2017-12-03 17:02:30 +10:00
David Reid c340035fe6 Polish the SDL backend and the Emscripten build.
* Remove dependency on SDL.h where possible
 * Use run-time linking where possible
 * Support both SDL 1.2 and SDL 2
 * Add device enumeration when using SDL 2

The Emscripten build currently uses SDL 1.2 because it avoids the need
for "-s USE_SDL=2" when compiling. This may change later if there's
ever a need or if there's enough demand.
2017-11-19 12:04:58 +10:00
David Reid ec2bbe5995 Fix typo. 2017-11-17 19:18:48 +10:00
David Reid 15da6a79c7 Stop trying to silence a non-warning. 2017-11-11 09:51:02 +10:00
David Reid 5c7bb0dc98 Update the advanced config example with backend selection. 2017-11-11 17:58:40 +10:00
David Reid 8fdb156d57 Add advanced config example. 2017-11-11 17:01:49 +10:00