On 28 April 2011 05:05, Mike Caron <[email protected]> wrote: > On 4/27/2011 13:02, James Paige wrote: >> >> On Wed, Apr 27, 2011 at 12:52:26PM -0400, Mike Caron wrote: >>> >>> On 4/27/2011 12:46, [email protected] wrote: >>>> >>>> james >>>> 2011-04-27 09:46:05 -0700 (Wed, 27 Apr 2011) >>>> 135 >>>> Remove "Streaming" from the sound effects import menu, because it >>>> doesn't do anything, and I can't figure out what it was meant to do. >>>> --- >>>> U wip/menus.bas >>> >>> Odds are, it was meant to allow one to select between "Streaming" (where >>> the sound is streamed from disk) and "Static" (where the sound is loaded >>> into memory completely). The former is more appropriate for large sounds >>> (eg, Music) while the latter is more appropriate for short sounds. >> >> I wasn't aware of the backends being able to handle that distinction. >> >> Maybe someone was planning to try and add it but never got around to it? >> >> Anyway, if we need a streaming option later, it can easily be added >> back. > > They probably can't. Fortunately, it's not a big deal these days. After all, > what's 10 Megs of Ram between you or me? :P > > > -- > - Mike Caron
The fact that SDL_mixer completely decodes a sound effect before playing it is actually quite a nuisance (and there is no option not to, of course). Even for a small sound effect, there is an annoying noticeable delay on a not-terribly-modern computer, which causes the entire program to freeze for a split second (up to nearly a whole second for a maximum size 500kb OGG sound effect on my netbook). (Recall also that music_sdl unloads the sound effect after playing it). I'm planning to get around this by running SDL_mixer from a separate thread, and maybe doing some caching of sound effects. Of course, the real solution is, as always, to get rid of that abomination called SDL_mixer by any means possible. _______________________________________________ Ohrrpgce mailing list [email protected] http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
