From ac3265d7f49b9c7e0cc78438d92013f359a7c02e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 11 May 2010 00:43:28 +0000 Subject: [PATCH] Evidence from Chris suggests that imported OGG files can clip, so check for that. git-svn-id: svn://localhost/ardour2/branches/3.0@7095 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/sndfileimportable.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/sndfileimportable.cc b/libs/ardour/sndfileimportable.cc index 758e8955c2..99697b888f 100644 --- a/libs/ardour/sndfileimportable.cc +++ b/libs/ardour/sndfileimportable.cc @@ -86,5 +86,5 @@ SndFileImportableSource::clamped_at_unity () const { 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); + return (sub != SF_FORMAT_FLOAT && sub != SF_FORMAT_DOUBLE && sub != SF_FORMAT_OGG); }