From 34d8df6a37ecf44311045db440dc3ebe9ef301e9 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 21 Jan 2011 00:58:36 +0000 Subject: Check for OGG format properly. Should fix #3723. git-svn-id: svn://localhost/ardour2/branches/3.0@8559 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/sndfileimportable.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libs/ardour/sndfileimportable.cc') diff --git a/libs/ardour/sndfileimportable.cc b/libs/ardour/sndfileimportable.cc index 75bfb9da57..c9f6c4014f 100644 --- a/libs/ardour/sndfileimportable.cc +++ b/libs/ardour/sndfileimportable.cc @@ -84,7 +84,8 @@ SndFileImportableSource::natural_position () const bool SndFileImportableSource::clamped_at_unity () const { + int const type = sf_info.format & SF_FORMAT_TYPEMASK; int const sub = sf_info.format & SF_FORMAT_SUBMASK; /* XXX: this may not be the full list of formats that are unclamped */ - return (sub != SF_FORMAT_FLOAT && sub != SF_FORMAT_DOUBLE && sub != SF_FORMAT_OGG); + return (sub != SF_FORMAT_FLOAT && sub != SF_FORMAT_DOUBLE && type != SF_FORMAT_OGG); } -- cgit v1.2.3