Re: Theoretics and Pseudocode: Sound Cues.
You can actually achieve gapless playback if you've got an audio backend which supports it. BASS for example supports preparing your samples in-memory beforehand, even merging multiple sounds into one with a bit knowledge of audio samples and sample rates etc (you don't want to mix them and might have to resample them, although BASS can do that for you as well). Its probably a bit of work, but you can achieve it. You can prebuild the entire sound with all the sounds concatenated before playing it without gaps, you just need to make sure to have the next randomized sound collection ready as soon as the previous one stops playing. I'm not sure if the outdated sound_file wrapper contains all the necessary tools to achieve something like that, but the new Bass4Py cython-based wrapper does, although its still not released, but most of the functionalities are already there.
-- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector