summaryrefslogtreecommitdiff
path: root/libs/ardour/sndfileimportable.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-05-11 00:43:28 +0000
committerCarl Hetherington <carl@carlh.net>2010-05-11 00:43:28 +0000
commitac3265d7f49b9c7e0cc78438d92013f359a7c02e (patch)
tree75a07ac2a8b3946ec49250307a9a7cf87a52b164 /libs/ardour/sndfileimportable.cc
parent6f3de51ed3c7c8fc81bafe67b3522fd732d7d40f (diff)
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
Diffstat (limited to 'libs/ardour/sndfileimportable.cc')
-rw-r--r--libs/ardour/sndfileimportable.cc2
1 files changed, 1 insertions, 1 deletions
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);
}