[SDL] callback issue

Ryan C. Gordon icculus at icculus.org
Sat Apr 28 11:09:37 PDT 2007


> The audio callback routine I have assigned fires ok but the length 
> parameter passed to it is not 512 as I would expect, instead it is 340...!?

SDL is probably converting to whatever format the audio hardware can 
handle behind the scenes, which means it needs less samples from you 
each callback.

You can't count on the callback to ask for a specific amount of data.

--ryan.



More information about the SDL mailing list