mattiasgustavsson / dos-like

Engine for making things with a MS-DOS feel, but for modern platforms
Other
994 stars 49 forks source link

No audio output for Linux builds #29

Closed LJNIC closed 2 years ago

LJNIC commented 2 years ago

None of the examples built for Linux are producing sound, however the Windows ones do work with Wine.

Linux: Pop OS 21.04

mattiasgustavsson commented 2 years ago

I don’t run Linux myself, so I am not able to look into it. I know that there are others who run Linux that do get sound though. You might want to add some more information about what Linux version you use etc, so that maybe someone else may give some advice

LJNIC commented 2 years ago

I was mistaken! It's actually the readchars function in the sound.c example that isn't returning anything on Linux.

mattiasgustavsson commented 2 years ago

Yeah, looking at the code it seems like I am not handling the SDL_TEXTINPUT event in the SDL implementation in app.h. Shouldn’t be too hard to add, once I get some time to look into it.

mattiasgustavsson commented 2 years ago

Should be fixed with PR #30