Updated sampling header with some cleanups and fixes. Should be a bit faster as well, hopefully.
Authored by: rconstruct 2009-12-02
Parent: [r272]
Child: [r274]