Commit Graph

5 Commits

Author SHA1 Message Date
Clownacy
b68d016aa5 [SDL] fixed fullscreen in SDL2 build 2018-07-01 23:53:54 +01:00
Clownacy
0569355cb5 [SDL] make SDL2 build support 8, 15, and 32BPP rendering 2018-07-01 22:40:30 +01:00
Clownacy
6e9cb90da4 [SDL] SDL_OpenAudio returns negative error codes in SDL2
SDL1.2 just returns -1, which this code was still checking for
2018-07-01 21:33:30 +01:00
Clownacy
cb5b682872 [SDL] don't accept alternate audio formats
On my PC, the SDL2 build doesn't 'obtain' the S16 format it
requests, but since the rest of the SDL2 frontend expects S16, this
causes the audio to fail. So, instead, I force SDL to accept S16, and
just convert to the native format implicitly.

I also applied this to every sound format setting, since I imagine the
frontend doesn't support obtaining only one channel, or a non 48kHz
frequency.
2018-07-01 21:27:58 +01:00
Clownacy
4cea68fa10 [SDL/SDL2] merged SDL1 and SDL2 files 2016-11-03 15:21:25 +00:00