diff options
author | Carl Hetherington <carl@carlh.net> | 2011-01-21 00:58:36 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-01-21 00:58:36 +0000 |
commit | 34d8df6a37ecf44311045db440dc3ebe9ef301e9 (patch) | |
tree | d7a64fefcd2d3ad936a57a59a251ad041dccbe2c /libs/ardour/sndfilesource.cc | |
parent | 184d5167db8b21be0a0279068933ea3b72db6ec2 (diff) |
Check for OGG format properly. Should fix #3723.
git-svn-id: svn://localhost/ardour2/branches/3.0@8559 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/sndfilesource.cc')
-rw-r--r-- | libs/ardour/sndfilesource.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/ardour/sndfilesource.cc b/libs/ardour/sndfilesource.cc index fa2e761d8e..3c219dc191 100644 --- a/libs/ardour/sndfilesource.cc +++ b/libs/ardour/sndfilesource.cc @@ -877,9 +877,10 @@ SndFileSource::one_of_several_channels () const bool SndFileSource::clamped_at_unity () const { + int const type = _info.format & SF_FORMAT_TYPEMASK; int const sub = _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 && type != SF_FORMAT_OGG); } void |