Minor changes to Phx and LVLImport needed to integrate progress in the libSWBF2 sound_overhaul PR
SoundLoader uses Instance singleton like all the others
Very basic Config indirection via SoundLoader:: InitializeSoundProperties(Level lvl). This is called every time PhxEnvironment loads a level. Resetting the SoundLoader DB does not clear the indirection mapping as the needed SoundProperties are fields of one big Config (which isn't referenced by name) and thus must be initialized all at once when a Level is loaded. This is wasteful but once we get a proper sound wrapping system in place it'll be removed. For now I just want sound effects to be regularly tested so we can catch any bugs in SampleBank reading.
Minor changes to Phx and LVLImport needed to integrate progress in the libSWBF2
sound_overhaul
PRSoundLoader
usesInstance
singleton like all the othersConfig
indirection viaSoundLoader:: InitializeSoundProperties(Level lvl)
. This is called every timePhxEnvironment
loads a level. Resetting the SoundLoader DB does not clear the indirection mapping as the needed SoundProperties are fields of one bigConfig
(which isn't referenced by name) and thus must be initialized all at once when aLevel
is loaded. This is wasteful but once we get a proper sound wrapping system in place it'll be removed. For now I just want sound effects to be regularly tested so we can catch any bugs inSampleBank
reading.SoundBank
/bnk
code removed