Changed Types of the static members of the OPL3Tunning class to use integers instead of float
This commit is contained in:
parent
5552975cca
commit
e8b243a80c
|
|
@ -18,15 +18,8 @@ private:
|
|||
* \f]
|
||||
* Index 0 corresponds to Octave1, index 7 to Octave8.
|
||||
*/
|
||||
static constexpr float POW2_BLOCKMINUS1[8] = {
|
||||
1.0f,
|
||||
2.0f,
|
||||
4.0f,
|
||||
8.0f,
|
||||
16.0f,
|
||||
32.0f,
|
||||
64.0f,
|
||||
128.0f,
|
||||
static constexpr uint16_t POW2_BLOCKMINUS1[8] = {
|
||||
1,2,4,8,16,32,64,128
|
||||
};
|
||||
|
||||
/*!
|
||||
|
|
@ -42,9 +35,13 @@ private:
|
|||
|
||||
/*!
|
||||
* @brief Calculated Sampling Frequency
|
||||
*
|
||||
* This Number is dependent on the Clock and is also used on the formula to calculate the F-Number
|
||||
* * \f[
|
||||
* f_s = \frac{T_{CLOCK}}{288}
|
||||
* \f]
|
||||
*/
|
||||
static constexpr float FS = TCLOCK / 288;
|
||||
static constexpr uint32_t FS = TCLOCK / 288;
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue