SDL 1.3 audio API proposal

Hello !

Blunt frequency changers (without doing any FFT’s etc… but rather just
duplicating/skipping samples based on ratio of playback rates) are fast
and relatively ugly… and would only take a lil bit of time to
implement… the prettier mixers are a completely different story… and
you’d prolly also want an API to pick what kind of resampling you want,
etc…

Jup. SDL needs a high quality sample converter
that people can use when they loaded their samples
to the actual sample format. Something like SDL_DisplayFormat
for samples.

CU

Ryan C. Gordon wrote:

How about the ability to get the latency for playing out the audio ?

What do you suggest for this?

I’ve had an API for a couple of years for mpeg4ip that I’ve
been supporting:

extern DECLSPEC int SDL_HasAudioDelay(void);
extern DECLSPEC int SDL_AudioDelay(void);

Right now, I return number of samples in the delay; I’ve got
support for ALSA, DSP and DX5. This allows me to synchronize
audio to video very well.

Bill