-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow audio support on ncurses builds #78841
Comments
I don't think it is possible at all. |
what would prevent it? SDL’s audio subsystem seems to be completely independent of the video subsystem, and at least on linux/osx (maybe windows does something odd here?), you can absolutely play audio without a window handle or display server connection |
I tried compiling it over ssh, just commenting out this line in the Makefile seemed to make it build with SOUND=1 TILES=0 and run fine (the settings menu is bugged and says tiles are enabled, but the actual game is definitely running with ncurses and works through ssh without any sort of X server pass through), I can't test if the sound works though since im not at the actual computer (I'm sure there's a way to forward sound I just don't think that's worth the complexity over just waiting a few days) |
I get this when trying to compile curses with SOUND=1 TILES=0 through WSL which could well be easily solvable but I have no clue |
do you have sdl2_mixer and pkgconfig installed? (no clue how it works on WSL, id assume you can just use a package manager like on linux) |
Whoops that's embarrassing no ;D
Having now installed them it is passing that and it is present at that location, now I'm getting this
|
my guess is that now the pkgconfig call succeeded and added a flag that enables "POSIX thread support" that wasn't there before, so your old PCH files are compiled without "POSIX thread support" but now your new ones (that weren't built before since your compilation failed halfway through) do have it |
Oh right I'm tired and didn't parse that PCH was pre compiled headers '^^ |
managed to get it to work, I'll PR it when I'm able to test it some more in a few days :) |
Is your feature request related to a problem? Please describe.
I would like to have sound effects and music within the ncurses version, just as it is on the tiles version
Solution you would like.
based on the Makefile the reason for not allowing SOUND=1 when TILES=0 is because sound requires SDL. I haven’t had the chance to read the source code thoroughly, but I don’t see why it wouldn’t be possible to initiate the audio subsystem of SDL while still using ncurses for graphics
I’d be happy to PR a fix for it if you don’t see any large obstacles, but I’ve never worked on a project this huge and I assume it’s a lot more complicated to fix this than I’d imagine
Describe alternatives you have considered.
Of course, I could use the tiles version of the app (and there are tons of minimalist tilesets) so this isn’t necessary at all, I just like being able to play from the terminal and have a minimal amount of visual distractions but do not want to miss out on the sound effects and music
Additional context
No response
The text was updated successfully, but these errors were encountered: