1 |
// qsamplerChannelStrip.cpp |
// qsamplerChannelStrip.cpp |
2 |
// |
// |
3 |
/**************************************************************************** |
/**************************************************************************** |
4 |
Copyright (C) 2004-2020, rncbc aka Rui Nuno Capela. All rights reserved. |
Copyright (C) 2004-2021, rncbc aka Rui Nuno Capela. All rights reserved. |
5 |
Copyright (C) 2007, 2008, 2014 Christian Schoenebeck |
Copyright (C) 2007, 2008, 2014 Christian Schoenebeck |
6 |
|
|
7 |
This program is free software; you can redistribute it and/or |
This program is free software; you can redistribute it and/or |
42 |
#define QSAMPLER_ERROR_LIMIT 3 |
#define QSAMPLER_ERROR_LIMIT 3 |
43 |
|
|
44 |
// Needed for lroundf() |
// Needed for lroundf() |
45 |
#include <math.h> |
#ifdef CONFIG_ROUND |
46 |
|
#include <cmath> |
47 |
#ifndef CONFIG_ROUND |
#else |
48 |
static inline long lroundf ( float x ) |
static inline long lroundf ( float x ) |
49 |
{ |
{ |
50 |
if (x >= 0.0f) |
if (x >= 0.0f) |