13
0

Fix Ogg export (maybe float export also?)

git-svn-id: svn://localhost/ardour2/branches/3.0@7948 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Sakari Bergen 2010-11-02 11:20:40 +00:00
parent 2c23733a1d
commit 544f62d4be

View File

@ -201,8 +201,9 @@ ExportGraphBuilder::SFC::SFC (ExportGraphBuilder &, FileSpec const & new_config,
int_converter->init (max_frames, config.format->dither_type(), data_width);
add_child (config);
} else {
int actual_data_width = 8 * sizeof(Sample);
float_converter = FloatConverterPtr (new SampleFormatConverter<Sample> (channels));
float_converter->init (max_frames, config.format->dither_type(), data_width);
float_converter->init (max_frames, config.format->dither_type(), actual_data_width);
add_child (config);
}
}