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
This commit is contained in:
Carl Hetherington 2010-05-11 00:43:28 +00:00
parent 6f3de51ed3
commit ac3265d7f4

View file

@ -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);
}