projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
NOOP, remove trailing tabs/whitespace.
[ardour.git]
/
libs
/
ardour
/
pcm_utils.cc
diff --git
a/libs/ardour/pcm_utils.cc
b/libs/ardour/pcm_utils.cc
index 08d8a63d6e60471479865cc1ad76a1742dc684e6..ae3bd4a4e06f4c6c8f90e8a9ef178e415d756560 100644
(file)
--- a/
libs/ardour/pcm_utils.cc
+++ b/
libs/ardour/pcm_utils.cc
@@
-17,8
+17,10
@@
*/
*/
-#include <ardour/pcm_utils.h>
-
+#ifdef COMPILER_MSVC
+#include <ardourext/float_cast.h>
+#endif
+#include "ardour/pcm_utils.h"
#include <cmath>
using namespace std;
#include <cmath>
using namespace std;
@@
-38,7
+40,7
@@
pcm_let2f_array (tribyte *src, int count, float *dest)
static const float normfact = 1.0 / ((float) 0x80000000);
unsigned char *ucptr ;
static const float normfact = 1.0 / ((float) 0x80000000);
unsigned char *ucptr ;
- int value ;
+ int
value ;
ucptr = ((unsigned char*) src) + 3 * count ;
while (--count >= 0)
ucptr = ((unsigned char*) src) + 3 * count ;
while (--count >= 0)
@@
-53,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);
{
/* Special normfactor because tribyte value is read into an int. */
static const float normfact = 1.0 / ((float) 0x80000000);
-
+
unsigned char *ucptr ;
int value ;
unsigned char *ucptr ;
int value ;
-
+
ucptr = ((unsigned char*) src) + 3 * count ;
while (--count >= 0)
{ ucptr -= 3 ;
ucptr = ((unsigned char*) src) + 3 * count ;
while (--count >= 0)
{ ucptr -= 3 ;
@@
-125,7
+127,7
@@
void
pcm_f2bet_array (const float *src, tribyte *dest, int count)
{
static const float normfact = (1.0 * 0x7FFFFF);
pcm_f2bet_array (const float *src, tribyte *dest, int count)
{
static const float normfact = (1.0 * 0x7FFFFF);
-
+
unsigned char *ucptr ;
int value ;
unsigned char *ucptr ;
int value ;