-
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
[CR] Add audio support for curses mode #78880
Conversation
I'm wondering what people think about this: should the |
Hi Jodi, My understanding of this and it's related issue is that this is just allowing curses players to bring over a soundpack and then play with sounds turned on? |
Ideally the default soundpack would ship with the curses build if built with sound support, do you know what I'd need to change for that to be the case? I changed the |
Yes please. |
to give a firmer response than harakka: yes, the documentation should be updated in the same PR to match the new behavior. |
It looks like apart from |
also I'm fairly sure I changed the only instance where the docs mention that tiles mode is required for audio support since nothing else that seems relevant comes up from a quick grep, but I just want to make sure no one else spots anything in the docs that I'd need to correct |
the Windows CI test fail doesn’t seem to be related to my PR, what can I do about it? |
We don't officially support terminal mode on Windows and make is the main build system, the rest are nice-to-haves that people who care about them maintain, so this should be fine.
I agree it doesn't seem related and the PR has BasicBuildPassed already, so it is mergeable even with that test failing. |
Thank you for doing this! |
Summary
Features "audio now works on curses mode, not just tiles mode"
Purpose of change
Closes #78841
Describe the solution
this patch initializes audio support as long as you are building with SOUND=1 without requiring TILES=1
Describe alternatives you've considered
I don't see any problems with this solution except the few copy and pasted lines but I figured it would be a lot easier to read and write this way, if that's an issue I can try to "DRY" it
Testing
I compiled with
make SOUND=1 TILES=0
and sound worked, tried the base sound pack and CC-Sounds and both worked, the api hasn't changed so I assume everything else also works as intendedI also did not check if it works on windows as I do not have a windows PC, but the code changes are small and mirrored in
ncurses_def.cpp
andwincurses.cpp
so I can't imagine there would be any windows-specific bugsAdditional context