1 |
// qsamplerMainForm.cpp |
// qsamplerMainForm.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-2019 Christian Schoenebeck |
Copyright (C) 2007-2019 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 |
74 |
#endif |
#endif |
75 |
|
|
76 |
#ifdef CONFIG_LIBGIG |
#ifdef CONFIG_LIBGIG |
77 |
|
#pragma GCC diagnostic push |
78 |
|
#pragma GCC diagnostic ignored "-Wunused-parameter" |
79 |
#include <gig.h> |
#include <gig.h> |
80 |
|
#pragma GCC diagnostic pop |
81 |
#endif |
#endif |
82 |
|
|
83 |
// Deprecated QTextStreamFunctions/Qt namespaces workaround. |
// Deprecated QTextStreamFunctions/Qt namespaces workaround. |
86 |
#endif |
#endif |
87 |
|
|
88 |
// Needed for lroundf() |
// Needed for lroundf() |
89 |
#include <math.h> |
#ifdef CONFIG_ROUND |
90 |
|
#include <cmath> |
91 |
#ifndef CONFIG_ROUND |
#else |
92 |
static inline long lroundf ( float x ) |
static inline long lroundf ( float x ) |
93 |
{ |
{ |
94 |
if (x >= 0.0f) |
if (x >= 0.0f) |