X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fpcm_utils.cc;h=ae3bd4a4e06f4c6c8f90e8a9ef178e415d756560;hb=a5e8a69dec467cc7d938cc3d92acb218b04486a9;hp=dd18fe8690c059559f9da4093aae07dd5f957372;hpb=9ab70fb55284537228577d575f15aa03949bd678;p=ardour.git diff --git a/libs/ardour/pcm_utils.cc b/libs/ardour/pcm_utils.cc index dd18fe8690..ae3bd4a4e0 100644 --- a/libs/ardour/pcm_utils.cc +++ b/libs/ardour/pcm_utils.cc @@ -15,11 +15,12 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id$ */ -#include - +#ifdef COMPILER_MSVC +#include +#endif +#include "ardour/pcm_utils.h" #include using namespace std; @@ -39,7 +40,7 @@ pcm_let2f_array (tribyte *src, int count, float *dest) static const float normfact = 1.0 / ((float) 0x80000000); unsigned char *ucptr ; - int value ; + int value ; ucptr = ((unsigned char*) src) + 3 * count ; while (--count >= 0) @@ -54,11 +55,11 @@ pcm_bet2f_array (tribyte *src, int count, float *dest) { /* Special normfactor because tribyte value is read into an int. */ static const float normfact = 1.0 / ((float) 0x80000000); - + unsigned char *ucptr ; int value ; - + ucptr = ((unsigned char*) src) + 3 * count ; while (--count >= 0) { ucptr -= 3 ; @@ -126,7 +127,7 @@ void pcm_f2bet_array (const float *src, tribyte *dest, int count) { static const float normfact = (1.0 * 0x7FFFFF); - + unsigned char *ucptr ; int value ;