[SDL] Creating audio samples via code
Gabriel Gambetta
mystml at adinet.com.uy
Mon May 21 11:53:53 PDT 2007
Hi guys,
We're making a game where we need to time-stretch some audio samples. My
idea is to load the samples normally and then create the stretched
samples on the fly.
The thing is, I can't find anything in SDL_mixer.h to create and
manipulate samples, except for the Mix_Chunk itself.
So two questions. First, if I just allocate a Mix_Chunk and its abuf
field and put stuff there, assuming the stuff is in the correct format,
should it work?
Second, would you be interested in a patch to add some functions to do
that? Say, Mix_CreateChunk(), Mix_GetSample() and Mix_PutSample()?
BTW, if someone has SDL_Mixer code to do time-stretching, you'll save me
a lot of work ;)
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