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…
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-----
Gabriel GambettaVon: sdl-admin at libsdl.org [mailto:sdl-admin at libsdl.org] Im Auftrag von
Gesendet: Donnerstag, 15. Mai 2003 15:08
An: sdl at libsdl.org
Betreff: RE: [SDL] Short question: is an ogg-file streamed by sdl_mixer
or first loaded completely into memory?
Strange - i do not need to extract my ogg-files. But my archive is not
compressed, just the files concatenated. I simply put the
file-pointer to the correct position in my archive.
I have a compressed “filesystem” in a file. That’s why I can’t read them
directly. But I could not compress them… only the ogg files. Good
idea!
I use SDL_LoadWav_RW too for ogg-files - why do you use loadmus ?
Because I want a Mix_Music and not a Mix_Chunk - I’m using these .oggs
as music, not as sound effects. Can I just load the ogg as a chunk and
play it as music? Is there any difference between playing it as music or
as a sample in another channel, after all?
Lic. Gabriel Gambetta
ARTech - GeneXus Development Team
ggambett at artech.com.uy
----- Original Message -----
From: Andre Krause [mailto:@Andre_Krause]
Sent: Mi?rcoles, 14 de Mayo de 2003 04:49 p.m.
To: sdl at libsdl.org
Subject: AW: [SDL] Short question: is an ogg-file streamed by sdl_mixer
or first loaded completely into memory?
Strange - i do not need to extract my ogg-files. But my archive is not
compressed, just the files concatenated. I simply put the file-pointer
to the correct position in my archive.
I use SDL_LoadWav_RW too for ogg-files - why do you use loadmus ?
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
Gabriel Gambetta
Gesendet: Mittwoch, 14. Mai 2003 21:34
An: sdl at libsdl.org
Betreff: RE: [SDL] Short question: is an ogg-file streamed by sdl_mixer
or first loaded completely into memory?
I was wondering the same thing. In my case, because SDL_LoadMUS_RW is
not implemented (or wasn’t at 1.2.4, at least) and I want to read small
.ogg files from a resource file - I have to extract the file to disk,
load it, and delete it. I do load wave files from a memory RW without
problems.
Lic. Gabriel Gambetta
ARTech - GeneXus Development Team
ggambett at artech.com.uy
-----Original Message-----
From: Andre Krause [mailto:@Andre_Krause]
Sent: Mi?rcoles, 14 de Mayo de 2003 04:11 p.m.
To: sdl at libsdl.org
Subject: [SDL] Short question: is an ogg-file streamed by sdl_mixer or
first loaded completely into memory?
Short question: is an ogg-file streamed by sdl_mixer or first loaded
completely into memory? Just want to know what happens if i allocate
multiple Mix_chunks via Mix_LoadWAV_RW from different ogg-files. Does
all the files go into memory ? If so, i probably should better play my
background music one after another.
Code snipped:
SDL_RWops * rw=NULL; FILE *fp=NULL;
if(archive->open(fp,“data/music/dr_trance_trance_animal_II_12.ogg”))
{
rw=SDL_RWFromFP(fp, 0);
Mix_Chunk *mix=Mix_LoadWAV_RW(rw,0);
int channel = Mix_PlayChannel(-1, mix, 0); // - 1= first free
unallocated channel
Andre Krause
Dipl. Inf.
Department of Biological Cybernetics
Faculty of Biology
University of Bielefeld
PO Box 10 01 31
33501 Bielefeld
Germany
Phone: +49-521-106-5519
Mobil: +49-177-7465055
Home : +49-521-3044776
Email: @Andre_Krause
ICQ# : 68306404
More ways to contact me: http://wwp.icq.com/68306404
Homepage: http://www.andre-krause.net
http://www.andre-krause.de
War isn’t politics, my dear. It is indeed the only human activity that
is rottener than politics. RexStout
I’ve stopped 16.484 spam messages. You can too!
Get your free, safe spam protection at
http://www.cloudmark.com/spamnetsig/
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
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