| 130 | } |
| 131 | |
| 132 | static inline sample_t expSample( const float _sample ) |
| 133 | { |
| 134 | float ph = fraction( _sample ); |
| 135 | if( ph > 0.5f ) |
| 136 | { |
| 137 | ph = 1.0f - ph; |
| 138 | } |
| 139 | return -1.0f + 8.0f * ph * ph; |
| 140 | } |
| 141 | |
| 142 | static inline sample_t noiseSample( const float ) |
| 143 | { |
no test coverage detected