[vlc-devel] [PATCH] Extend simple mixer to handle 16bit audio

Rémi Denis-Courmont remi at remlab.net
Sun Sep 25 18:07:47 CEST 2011


Le dimanche 25 septembre 2011 15:14:00 XilasZ, vous avez écrit :
> But the code is not acceptable IMHO:
> >  - you don't handle overflow, and so you will have broken audio.
> >  - you still use float, so no performance gain
> 
> hmm, good point, i'm not used to those stuff, can you suggest a good way to
> fix it ?

Use fixed point math. It will be slow, but possibly still faster than software 
floating point.

Alternatively, use saturating math, but that implies assembler.

-- 
Rémi Denis-Courmont
http://www.remlab.net/
http://fi.linkedin.com/in/remidenis



More information about the vlc-devel mailing list