3 |
* LinuxSampler - modular, streaming capable sampler * |
* LinuxSampler - modular, streaming capable sampler * |
4 |
* * |
* * |
5 |
* Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck * |
* Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck * |
6 |
* Copyright (C) 2005 - 2017 Christian Schoenebeck * |
* Copyright (C) 2005 - 2019 Christian Schoenebeck * |
7 |
* * |
* * |
8 |
* This program is free software; you can redistribute it and/or modify * |
* This program is free software; you can redistribute it and/or modify * |
9 |
* it under the terms of the GNU General Public License as published by * |
* it under the terms of the GNU General Public License as published by * |
180 |
*/ |
*/ |
181 |
static usecs_t unsafeMicroSeconds(clock_source_t source); |
static usecs_t unsafeMicroSeconds(clock_source_t source); |
182 |
|
|
183 |
|
/** |
184 |
|
* 'Equalness' comparison between two 32 bit floating point numbers |
185 |
|
* (that is of single precision data type). |
186 |
|
* |
187 |
|
* This methods deals with the expected tolerance of the floating point |
188 |
|
* representation. |
189 |
|
* |
190 |
|
* @return true if the two numbers can be expected to be equal |
191 |
|
*/ |
192 |
|
static bool fEqual32(float a, float b); |
193 |
|
|
194 |
|
/** |
195 |
|
* 'Equalness' comparison between two 64 bit floating point numbers |
196 |
|
* (that is of double precision data type). |
197 |
|
* |
198 |
|
* This methods deals with the expected tolerance of the floating point |
199 |
|
* representation. |
200 |
|
* |
201 |
|
* @return true if the two numbers can be expected to be equal |
202 |
|
*/ |
203 |
|
static bool fEqual64(double a, double b); |
204 |
|
|
205 |
private: |
private: |
206 |
static float* pCentsToFreqTable; |
static float* pCentsToFreqTable; |
207 |
|
|