SDL mmx audio modification

Hi,

I’ve made a modification to SDL that uses mmx to mix audio.
If you want to take a look at it I’ve put a tgz of the modified/added
files here :
http://dea-dess-info.u-strasbg.fr/~marchesin/SDL-mmxmixer.tgz

Stephane

I’ve made a modification to SDL that uses mmx to mix audio.
If you want to take a look at it I’ve put a tgz of the modified/added
files here :
http://dea-dess-info.u-strasbg.fr/~marchesin/SDL-mmxmixer.tgz

Have you doone any profiling, and if so, what sort of performance gains
does this bring?

–ryan.

Ryan C. Gordon wrote:

I’ve made a modification to SDL that uses mmx to mix audio.
If you want to take a look at it I’ve put a tgz of the modified/added
files here :
http://dea-dess-info.u-strasbg.fr/~marchesin/SDL-mmxmixer.tgz

Have you doone any profiling, and if so, what sort of performance gains
does this bring?

Yes, I’ve tuned the code a bit. The resulting code is ~8 times faster
than plain C for 16 bit mixing, a bit more (~ 10 times) for 8 bit
mixing. But sadly programs don’t spend their time mixing sounds :wink:

Stephane