further work on soundlib support code

move some inline code into functions
replace some magic numbers

The mingw code is not tested yet.
This commit is contained in:
nhmall
2023-01-31 22:19:29 -05:00
parent 4ccee5a177
commit 8ee42f5644
7 changed files with 214 additions and 75 deletions
+2 -2
View File
@@ -93,7 +93,8 @@ macsound_soundeffect(char *desc UNUSED, int32_t seid, int volume UNUSED)
if (seid <= se_zero_invalid || seid >= number_of_se_entries)
return;
if (!affiliation[seid]) {
soundname = get_sound_effect_filename(seid, buf, sizeof buf, 1);
soundname = get_sound_effect_filename(seid, buf, sizeof buf,
sff_base_only);
if (soundname) {
affiliate(seid, soundname);
}
@@ -231,4 +232,3 @@ affiliate(int32_t seid, const char *soundname)
return 1;
}
/* end of macsound.m */