properly handle integer steps in plugin controls
[ardour.git] / libs / ardour / sndfile_helpers.cc
index 07281e6901f42e3f73382745a68a0660992f642d..08c57bfec2703e8f881fe805c840e5e66d90168f 100644 (file)
 
 */
 
+#ifndef COMPILER_MSVC
 #include <strings.h>
+#endif
 #include <map>
-#include <vector>
-
-#include "pbd/convert.h"
 
 #include <sndfile.h>
 #include "ardour/sndfile_helpers.h"
@@ -124,19 +123,19 @@ sndfile_data_width (int format)
        int tval = format & 0xf;
 
        switch (tval) {
-         case SF_FORMAT_PCM_S8:
-         case SF_FORMAT_PCM_U8:
+       case SF_FORMAT_PCM_S8:
+       case SF_FORMAT_PCM_U8:
                return 8;
-         case SF_FORMAT_PCM_16:
+       case SF_FORMAT_PCM_16:
                return 16;
-         case SF_FORMAT_PCM_24:
+       case SF_FORMAT_PCM_24:
                return 24;
-         case SF_FORMAT_PCM_32:
+       case SF_FORMAT_PCM_32:
                return 32;
-         case SF_FORMAT_FLOAT:
-               return 1; // heh, heh
-         default:
-           // we don't handle anything else within ardour
+       case SF_FORMAT_FLOAT:
+               return 1; /* ridiculous but used as a magic value */
+       default:
+               // we don't handle anything else within ardour
                return 0;
        }
 }