summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/sndfile_helpers.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2015-01-24 18:53:10 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2015-01-24 18:53:10 -0500
commit5ff6402dad5b9aa8de0ce2ac44e8f3189ef9439e (patch)
tree8d90083182355de73bad0a1c67bcbd167745b464 /libs/ardour/ardour/sndfile_helpers.h
parentccd881d518521fa56a43a66632bedf814710105f (diff)
add function to get data width for ARDOUR::SampleFormat
Diffstat (limited to 'libs/ardour/ardour/sndfile_helpers.h')
-rw-r--r--libs/ardour/ardour/sndfile_helpers.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/ardour/ardour/sndfile_helpers.h b/libs/ardour/ardour/sndfile_helpers.h
index 02f486a975..b475b082be 100644
--- a/libs/ardour/ardour/sndfile_helpers.h
+++ b/libs/ardour/ardour/sndfile_helpers.h
@@ -23,6 +23,8 @@
#include <string>
#include <stdint.h>
+#include "ardour/types.h"
+
// Use this define when initializing arrarys for use in sndfile_*_format()
#define SNDFILE_STR_LENGTH 32
@@ -47,6 +49,7 @@ int sndfile_header_format_by_index (int);
int sndfile_endian_format_by_index (int);
int sndfile_data_width (int format);
+int sndfile_data_width (ARDOUR::SampleFormat);
// It'd be nice if libsndfile did this for us
std::string sndfile_major_format (int);