trim typo and details
[ardour.git] / libs / ardour / sndfile_helpers.cc
index 2e618e043bb3b5cba8f52a297ff9ab5a1f00373c..08c57bfec2703e8f881fe805c840e5e66d90168f 100644 (file)
@@ -123,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;
        }
 }