some macsound instrument play refinements

Also some better core placement of some of the Hero_playnotes calls.
This commit is contained in:
nhmall
2023-01-24 13:02:29 -05:00
parent 09fa9a865d
commit 5171fcdc1d
7 changed files with 81 additions and 70 deletions

View File

@@ -209,8 +209,11 @@ void NetHackQtBind::qt_init_nhwindows(int *argc, char **argv)
* should be loaded by activate_chosen_soundlib() shortly.
* gc.chosen_soundlib is initialized to soundlib_nosound.
*/
if (gc.chosen_soundlib == soundlib_nosound)
assign_soundlib(soundlib_qtsound);
if (gc.chosen_soundlib == (uint32_t) soundlib_nosound) {
uint32_t soundlibchoice = (uint32_t) soundlib_qtsound;
assign_soundlib(soundlibchoice);
}
#endif
}