*/
-#include <ardour/pcm_utils.h>
-
+#ifdef COMPILER_MSVC
+#include <ardourext/float_cast.h>
+#endif
+#include "ardour/pcm_utils.h"
#include <cmath>
using namespace std;
static const float normfact = 1.0 / ((float) 0x80000000);
unsigned char *ucptr ;
- int value ;
+ int value ;
ucptr = ((unsigned char*) src) + 3 * count ;
while (--count >= 0)
{
/* 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 ;
pcm_f2bet_array (const float *src, tribyte *dest, int count)
{
static const float normfact = (1.0 * 0x7FFFFF);
-
+
unsigned char *ucptr ;
int value ;