[SDL] mixer help?

Joseph I . Valenzuela tsaotsao at lokigames.com
Mon Sep 11 12:47:39 PDT 2000

On Mon, Sep 11, 2000 at 07:01:49PM +0200, Mattias Engdeg?rd wrote:
> >Joe Valenzuela implemented this in OpenAL.  Check that out for a sample
> >implementation:  http://www.openal.org/
> from al_filter.c:
> /*
>  *  FIXME: 
>  *
>  *  I give up.  I can't get the pitch filter right and I don't know
>  *  what I'm doing wrong.  I'm going to wait until I have a better
>  *  info to do this, and stick with tpitch for now.
>  */
> ;-)

Heh.  The good mojo happens in alf_tpitch (in al_filter.c), which mirrors
the previous discussion (resampling in time domain).  The comment brings
to mind the frustration which trying to fit an fft-based implementation
into a real-time simulation can give rise to.

> Seriously, the openAL code looks very good, and I have no doubt that
> Joe will crush the remaining problems. But his code is more generic
> and might not be the optimum for the simple case of playing back a
> fixed sample with varying pitch

No question.

J. Valenzuela -- tsaotsao at lokigames.com

More information about the SDL mailing list