--- linuxsampler/trunk/src/Sampler.h 2008/02/16 01:09:33 1695 +++ linuxsampler/trunk/src/Sampler.h 2008/08/29 15:42:06 1761 @@ -150,6 +150,9 @@ * Sampler instance. */ uint Index(); + + /** Returns the sampler to which this channel belongs */ + Sampler* GetSampler(); /** * Registers the specified listener to be notified @@ -531,6 +534,15 @@ */ void Reset(); + /** + * Advise the FPU to treat denormal floating point numbers as + * zero, to avoid severe performance penalty when dealing with + * such extreme floating point values. + * + * @returns @c true if FPU supports it, @c false otherwise + */ + static bool EnableDenormalsAreZeroMode(); + protected: /** * Notifies listeners that the number of sampler channels has been changed.