diff options
author | Robin Gareus <robin@gareus.org> | 2018-10-21 17:02:14 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2018-10-21 17:02:14 +0200 |
commit | 1229d50e45b47dce5ab59d0c0185e75d50bf3b84 (patch) | |
tree | 2d9bb9cefa60510ac9ad2480cf7968158a610087 /libs/zita-convolver/zita-convolver.cc | |
parent | 47d341434e1cdcca8b7c359bc01c9032898123dc (diff) |
MSVC compatibility for zita-convolver
Diffstat (limited to 'libs/zita-convolver/zita-convolver.cc')
-rw-r--r-- | libs/zita-convolver/zita-convolver.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libs/zita-convolver/zita-convolver.cc b/libs/zita-convolver/zita-convolver.cc index 3a2d053be9..91637b46d4 100644 --- a/libs/zita-convolver/zita-convolver.cc +++ b/libs/zita-convolver/zita-convolver.cc @@ -22,6 +22,10 @@ #include <string.h> #include <unistd.h> +#if _MSC_VER +#include <windows.h> // Needed for 'Sleep()' +#endif + #include "zita-convolver/zita-convolver.h" using namespace ArdourZita; @@ -352,7 +356,11 @@ Convproc::cleanup (void) uint32_t k; while (!check_stop ()) { +#if _MSC_VER + Sleep (100); +#else usleep (100000); +#endif } for (k = 0; k < _ninp; k++) { delete[] _inpbuff[k]; @@ -403,7 +411,9 @@ Convproc::print (FILE* F) _convlev[k]->print (F); } +#ifdef ENABLE_VECTOR_MODE typedef float FV4 __attribute__ ((vector_size (16))); +#endif Convlevel::Convlevel (void) : _stat (ST_IDLE) |