VOGONS


First post, by mr_bigmouth_502

User metadata
Rank Oldbie
Rank
Oldbie

Forgive me if this has been answered before, but what exactly prevents DosBox from working properly with SDL2? Why can't DosBox just include the parts of the SDL1 codebase that it requires instead of calling on it as an external library?

Reply 1 of 5, by Jorpho

User metadata
Rank l33t++
Rank
l33t++
mr_bigmouth_502 wrote:

Why can't DosBox just include the parts of the SDL1 codebase that it requires instead of calling on it as an external library?

Probably because dealing with other people's code is excruciating, and trying to only include particular parts while taking out other parts and getting everything to play nicely with SDL 2.0 is far more difficult than it sounds.

But perhaps someone can offer a better explanation.

Reply 2 of 5, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator
Jorpho wrote:
mr_bigmouth_502 wrote:

Why can't DosBox just include the parts of the SDL1 codebase that it requires instead of calling on it as an external library?

Probably because dealing with other people's code is excruciating, and trying to only include particular parts while taking out other parts and getting everything to play nicely with SDL 2.0 is far more difficult than it sounds.

But perhaps someone can offer a better explanation.

This!
AND someone would need to do the porting (which has already been done) and then a lot of testing is needed. Lots!

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 3 of 5, by dugan

User metadata
Rank Newbie
Rank
Newbie

If you look at the thread for the SDL2 patch, you'll see that SDL_sound (ogg and mp3s in CD images) and audio CD support have been issues.

I think it's also worth pointing out that the SDL2 port of Chocolate DOOM (which doesn't need to play audio CDs) took quite a while.

Reply 4 of 5, by DosDaddy

User metadata
Rank Newbie
Rank
Newbie

Yes, there seem to be issues, but also improvements, and of such be SDL_OpenAudioDevice/Mix_OpenAudioDevice which could be used to stream multiple audio outputs thus bypassing the ghastly quality of SDL's resampling capabilities.

Reply 5 of 5, by leileilol

User metadata
Rank l33t++
Rank
l33t++

Because SDL 1.x works, and SDL2 has input issues on Windows. SDL2 also regresses some previously supported platforms. SDL1 has seen Apple-style reluctance from the SDL team to encourage SDL2 migration

apsosig.png
long live PCem