Skip to content

Commit

Permalink
Fix GH#17659: OGG export always at 48000 Hz
Browse files Browse the repository at this point in the history
  • Loading branch information
Jojo-Schmitz committed May 23, 2023
1 parent 8288f7d commit 559d40a
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
Expand Up @@ -30,9 +30,11 @@ ExportSettingsPage {
id: root

property bool showBitRateControl: false
property bool showSampleRateControl: true

ExportOptionItem {
id: sampleRateLabel
visible: root.showSampleRateControl
text: qsTrc("project/export", "Sample rate:")

StyledDropdown {
Expand Down
@@ -0,0 +1,26 @@
/*
* SPDX-License-Identifier: GPL-3.0-only
* MuseScore-CLA-applies
*
* MuseScore
* Music Composition & Notation
*
* Copyright (C) 2021 MuseScore BVBA and others
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import QtQuick 2.15

AudioSettingsPage {
showSampleRateControl: false
}
2 changes: 1 addition & 1 deletion src/project/view/exportdialogmodel.cpp
Expand Up @@ -82,7 +82,7 @@ ExportDialogModel::ExportDialogModel(QObject* parent)
ExportType::makeWithSuffixes({ "ogg" },
qtrc("project/export", "OGG audio"),
qtrc("project/export", "OGG audio files"),
"AudioSettingsPage.qml"),
"OggSettingsPage.qml"),
ExportType::makeWithSuffixes({ "flac" },
qtrc("project/export", "FLAC audio"),
qtrc("project/export", "FLAC audio files"),
Expand Down

0 comments on commit 559d40a

Please sign in to comment.