mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-07 14:15:46 +01:00
Work around a bug in gdither with 32-bit integer export, fixes 32-bit export.
git-svn-id: svn://localhost/ardour2/branches/3.0@14047 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
6dbfeaf164
commit
1550f1ef00
1 changed files with 5 additions and 9 deletions
|
|
@ -57,16 +57,12 @@ SampleFormatConverter<int32_t>::init (framecnt_t max_frames, int type, int data_
|
|||
if(throw_level (ThrowObject) && data_width < 24) {
|
||||
throw Exception (*this, "Trying to use SampleFormatConverter<int32_t> for data widths < 24");
|
||||
}
|
||||
|
||||
|
||||
init_common (max_frames);
|
||||
|
||||
if (data_width == 24) {
|
||||
dither = gdither_new ((GDitherType) type, channels, GDither32bit, data_width);
|
||||
} else if (data_width == 32) {
|
||||
dither = gdither_new (GDitherNone, channels, GDitherFloat, data_width);
|
||||
} else if (throw_level (ThrowObject)) {
|
||||
throw Exception (*this, "Unsupported data width");
|
||||
}
|
||||
|
||||
// GDither is broken with GDither32bit if the dither depth
|
||||
// is bigger than 24, so lets just use that...
|
||||
dither = gdither_new (GDitherNone, channels, GDither32bit, 24);
|
||||
}
|
||||
|
||||
template <>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue