[SDL] Creating audio samples via code

Gabriel Gambetta mystml at adinet.com.uy
Mon May 21 16:43:11 PDT 2007


Hi David,

> Not sure if this is the correct type of interface for this - but then 
> I'm not sure I understand what you actually want to do. :-)

Thanks for your reply. I think I may have been somewhat unclear. I'm not
trying to synchronize the audio with anything else. I have an .ogg file
with a 2 or 3 second segment of Beethoven's 5th, and I need to play it
faster or slower without altering the pitch. So yes, the
Mix_QuickLoad_RAW() solution may work.

We could precompute the time-stretched samples with sox or a similar
program, but we want to do it at runtime (not necessarily realtime) to
save disk and memory space.

Thanks,

        --Gabriel

________________________________________________________________________
Gabriel Gambetta
Mystery Studio - http://www.mysterystudio.com
Gabriel's Stuff - http://www.mysterystudio.com/gabriel



More information about the SDL mailing list