[SDL] SDL 1.3 audio API proposal...

Bill May wmay at cisco.com
Mon Aug 7 11:55:07 PDT 2006


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




More information about the SDL mailing list