diff options
author | Taybin Rutkin <taybin@taybin.com> | 2006-03-07 23:41:52 +0000 |
---|---|---|
committer | Taybin Rutkin <taybin@taybin.com> | 2006-03-07 23:41:52 +0000 |
commit | be60137cfb31ef1266f5132a9fd465c01ce074a9 (patch) | |
tree | 1a36dad623d17a344d1d1192b218b2df55ce3ca6 /libs/ardour/ardour/sndfile_helpers.h | |
parent | 00c9cc9ddef5ee26a8d6902b08387542bea10f15 (diff) |
Wrapper around SF_INFO and AudioFileBasicDescription.
git-svn-id: svn://localhost/trunk/ardour2@357 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/sndfile_helpers.h')
-rw-r--r-- | libs/ardour/ardour/sndfile_helpers.h | 9 |
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__ */ |