projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix DSP load bounds 0..1 and add unbound API
[ardour.git]
/
libs
/
ardour
/
sndfile_helpers.cc
diff --git
a/libs/ardour/sndfile_helpers.cc
b/libs/ardour/sndfile_helpers.cc
index 2e618e043bb3b5cba8f52a297ff9ab5a1f00373c..08c57bfec2703e8f881fe805c840e5e66d90168f 100644
(file)
--- a/
libs/ardour/sndfile_helpers.cc
+++ b/
libs/ardour/sndfile_helpers.cc
@@
-123,19
+123,19
@@
sndfile_data_width (int format)
int tval = format & 0xf;
switch (tval) {
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;
return 8;
-
case SF_FORMAT_PCM_16:
+ case SF_FORMAT_PCM_16:
return 16;
return 16;
-
case SF_FORMAT_PCM_24:
+ case SF_FORMAT_PCM_24:
return 24;
return 24;
-
case SF_FORMAT_PCM_32:
+ case SF_FORMAT_PCM_32:
return 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;
}
}
return 0;
}
}