summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/sndfile_helpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/ardour/sndfile_helpers.h')
-rw-r--r--libs/ardour/ardour/sndfile_helpers.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libs/ardour/ardour/sndfile_helpers.h b/libs/ardour/ardour/sndfile_helpers.h
index bae73a0377..b616a5470e 100644
--- a/libs/ardour/ardour/sndfile_helpers.h
+++ b/libs/ardour/ardour/sndfile_helpers.h
@@ -35,4 +35,13 @@ int sndfile_data_width (int format);
string sndfile_major_format(int);
string sndfile_minor_format(int);
+struct SoundFileInfo {
+ float samplerate;
+ uint16_t channels;
+ int64_t length;
+ std::string format_name;
+};
+
+bool get_soundfile_info (string path, SoundFileInfo& _info);
+
#endif /* __sndfile_helpers_h__ */