Amend prev. commit, actually remove (1.0 - x) as was documented
authorRobin Gareus <robin@gareus.org>
Thu, 22 Nov 2018 20:05:03 +0000 (21:05 +0100)
committerRobin Gareus <robin@gareus.org>
Thu, 22 Nov 2018 20:05:03 +0000 (21:05 +0100)
libs/ardour/export_graph_builder.cc

index dad0f47219ef9e227f3a6948792abde9f04565bd..b42584578697d4a6a69de281b8e504df5f989516 100644 (file)
@@ -311,7 +311,7 @@ ExportGraphBuilder::Encoder::init_writer (boost::shared_ptr<AudioGrapher::Sndfil
                 * SFC_SET_VBR_ENCODING_QUALITY and maps
                 * SFC_SET_COMPRESSION_LEVEL = 1.0 - VBR_ENCODING_QUALITY
                 */
-               double vorbis_quality = 1.0 - config.format->codec_quality () / 100.f;
+               double vorbis_quality = config.format->codec_quality () / 100.f;
                if (vorbis_quality >= 0 && vorbis_quality <= 1.0) {
                        writer->command (SFC_SET_VBR_ENCODING_QUALITY, &vorbis_quality, sizeof (double));
                }