diff options
author | Sakari Bergen <sakari.bergen@beatwaves.net> | 2010-11-02 11:20:40 +0000 |
---|---|---|
committer | Sakari Bergen <sakari.bergen@beatwaves.net> | 2010-11-02 11:20:40 +0000 |
commit | 544f62d4be67284b3d68fb2260b15d6002ed9a2d (patch) | |
tree | 47250df8e017071a5e487a48030646007aa7ff46 /libs/ardour | |
parent | 2c23733a1d71f3e8e3bff00daa38bb238a372c76 (diff) |
Fix Ogg export (maybe float export also?)
git-svn-id: svn://localhost/ardour2/branches/3.0@7948 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour')
-rw-r--r-- | libs/ardour/export_graph_builder.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/ardour/export_graph_builder.cc b/libs/ardour/export_graph_builder.cc index e7507b7449..51ca58d880 100644 --- a/libs/ardour/export_graph_builder.cc +++ b/libs/ardour/export_graph_builder.cc @@ -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); } } |