AW: AW: [SDL] Short question: is an ogg-file streamed by sdl_mixer or first loaded completely into memory?
Andre Krause
post at andre-krause.net
Fri May 16 10:49:01 PDT 2003
Ok, i watched my memory-counter: you are right - the ogg file is first
decompressed and goes uncompressed into memory :-(
Hopefully sometimes RWOps functionality is implemented for ogg-file -
streaming...
Or is it principally impossible?
I've stopped 16.484 spam messages. You can too!
Get your free, safe spam protection at
http://www.cloudmark.com/spamnetsig/
-----Ursprüngliche Nachricht-----
Von: sdl-admin at libsdl.org [mailto:sdl-admin at libsdl.org] Im Auftrag von
Andre Krause
Gesendet: Freitag, 16. Mai 2003 10:12
An: sdl at libsdl.org
Betreff: AW: AW: [SDL] Short question: is an ogg-file streamed by
sdl_mixer or first loaded completely into memory?
Are you really sure ? I did not notice my program eating up 20 mbytes
more mem (that would be the size of the uncompressed ogg) i think the
ogg is loaded as it is and ogg-lib can play from a memory handle. But i
will check this again and watching my memory stats while my pgro loads !
I've stopped 16.484 spam messages. You can too!
Get your free, safe spam protection at
http://www.cloudmark.com/spamnetsig/
-----Ursprüngliche Nachricht-----
Von: sdl-admin at libsdl.org [mailto:sdl-admin at libsdl.org] Im Auftrag von
David Hedbor
Gesendet: Freitag, 16. Mai 2003 00:42
An: sdl at libsdl.org
Betreff: Re: AW: [SDL] Short question: is an ogg-file streamed by
sdl_mixer or first loaded completely into memory?
"Andre Krause" <post at andre-krause.net> writes:
> Hmm, i dont know, but it works wonderful - the ogg file is played
> without problems. So probably there is no difference at all between a
> music and a wav-channel...
Music is streaming (when possible), sfx are not. I.e load a Ogg as a
sound effect and it's decompressed into memory at load time. If you use
good sound quality and a long song (or worse, more than one song loaded
at once) this can quickly eat up A LOT of memory.
Music on the other hand is read/decoded as needed (other than in obvious
cases when this isn't possible, such as for mods). Currently you have to
give SDL an actual file for this, as noted.
--
[ Below is a random fortune, which is unrelated to the above message. ]
When angry, count four; when very angry, swear.
-- Mark Twain, "Pudd'nhead Wilson's Calendar"
_______________________________________________
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl
_______________________________________________
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl
More information about the SDL
mailing list