Skip to content

Commit

Permalink
Merge pull request #1542 from DanWin/export
Browse files Browse the repository at this point in the history
Fix export for some locales
  • Loading branch information
diizy committed Jan 4, 2015
2 parents e503875 + 44f72b0 commit 5fdc452
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/gui/export_project_dialog.cpp
Expand Up @@ -253,10 +253,13 @@ ProjectRenderer* exportProjectDialog::prepRender()
static_cast<Mixer::qualitySettings::Interpolation>(interpolationCB->currentIndex()),
static_cast<Mixer::qualitySettings::Oversampling>(oversamplingCB->currentIndex()) );

const int samplerates[5] = { 44100, 48000, 88200, 96000, 192000 };
const int bitrates[6] = { 64, 128, 160, 192, 256, 320 };

ProjectRenderer::OutputSettings os = ProjectRenderer::OutputSettings(
samplerateCB->currentText().section(" ", 0, 0).toUInt(),
samplerates[ samplerateCB->currentIndex() ],
false,
bitrateCB->currentText().section(" ", 0, 0).toUInt(),
bitrates[ bitrateCB->currentIndex() ],
static_cast<ProjectRenderer::Depths>( depthCB->currentIndex() ) );

engine::getSong()->setExportLoop( exportLoopCB->isChecked() );
Expand Down

0 comments on commit 5fdc452

Please sign in to comment.