1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-13 22:21:11 +02:00

Redo format setting choices in Quality preferences

This commit is contained in:
Paul Licameli
2018-03-24 00:10:50 -04:00
parent 293f22db37
commit 2ea5741e2e
12 changed files with 58 additions and 33 deletions

View File

@@ -45,6 +45,7 @@
#include "ImportPlugin.h"
#include "../Internat.h"
#include "../Tags.h"
#include "../prefs/QualityPrefs.h"
#define DESC _("MP3 files")
@@ -498,8 +499,7 @@ enum mad_flow output_cb(void *_data,
if(data->channels.empty()) {
data->channels.resize(channels);
sampleFormat format = (sampleFormat) gPrefs->
Read(wxT("/SamplingRate/DefaultProjectSampleFormat"), floatSample);
auto format = QualityPrefs::SampleFormatChoice();
for(auto &channel: data->channels) {
channel = data->trackFactory->NewWaveTrack(format, samplerate);