| 314 | |
| 315 | |
| 316 | class StereoEnhancer : public StereoBase<StereoEnhancer> |
| 317 | { |
| 318 | public: |
| 319 | StereoEnhancer( float wideCoeff ) : |
| 320 | m_wideCoeff( wideCoeff ) |
| 321 | { |
| 322 | } |
| 323 | |
| 324 | void setWideCoeff( float wideCoeff ) |
| 325 | { |
| 326 | m_wideCoeff = wideCoeff; |
| 327 | } |
| 328 | |
| 329 | float wideCoeff() |
| 330 | { |
| 331 | return m_wideCoeff; |
| 332 | } |
| 333 | |
| 334 | void nextSample( sample_t& inLeft, sample_t& inRight ) |
| 335 | { |
| 336 | const float toRad = F_PI / 180; |
| 337 | const sample_t tmp = inLeft; |
| 338 | inLeft += inRight * sinf( m_wideCoeff * ( .5 * toRad ) ); |
| 339 | inRight -= tmp * sinf( m_wideCoeff * ( .5 * toRad ) ); |
| 340 | } |
| 341 | |
| 342 | private: |
| 343 | float m_wideCoeff; |
| 344 | |
| 345 | } ; |
| 346 | |
| 347 | } ; |
| 348 |
no outgoing calls
no test coverage detected