mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2025-01-08 19:21:44 +00:00
GUI: use WAV variants of the default GUI job sounds
It seems that WAV is the only format supported across most versions of Qt (5 & 6) and most operating systems. Existing "run program" configurations will be adjusted if they still contain Ogg files with the installation directory placeholder.
This commit is contained in:
parent
4a4e8dc035
commit
ac9951eaed
Binary file not shown.
BIN
share/sounds/finished-1.wav
Normal file
BIN
share/sounds/finished-1.wav
Normal file
Binary file not shown.
Binary file not shown.
BIN
share/sounds/finished-2.wav
Normal file
BIN
share/sounds/finished-2.wav
Normal file
Binary file not shown.
Binary file not shown.
BIN
share/sounds/finished-3.wav
Normal file
BIN
share/sounds/finished-3.wav
Normal file
Binary file not shown.
@ -264,6 +264,29 @@ convert67_0_0UseISO639_3Languages(version_number_t const &writtenByVersion) {
|
||||
reg->endGroup();
|
||||
}
|
||||
|
||||
void
|
||||
convert67_0_0DefaultAudioFileNames(version_number_t const &writtenByVersion) {
|
||||
if (writtenByVersion >= version_number_t{"67.0.0.0"})
|
||||
return;
|
||||
|
||||
auto reg = Settings::registry();
|
||||
auto oggRe = QRegularExpression{Q("<MTX_INSTALLATION_DIRECTORY>.*ogg$")};
|
||||
|
||||
reg->beginGroup(s_grpRunProgramConfigurations);
|
||||
|
||||
for (auto const &group : reg->childGroups()) {
|
||||
reg->beginGroup(group);
|
||||
auto audioFile = reg->value(s_valAudioFile).toString();
|
||||
|
||||
if (audioFile.contains(oggRe))
|
||||
reg->setValue(s_valAudioFile, audioFile.left(audioFile.length() - 3) + Q("wav"));
|
||||
|
||||
reg->endGroup();
|
||||
}
|
||||
|
||||
reg->endGroup(); // runProgramConfigurations
|
||||
}
|
||||
|
||||
} // anonymous namespace
|
||||
|
||||
QString
|
||||
@ -449,6 +472,7 @@ Settings::convertOldSettings() {
|
||||
convert66_0_0LanguageShortcuts();
|
||||
convert67_0_0AttachmentsAlwaysSkipForExistingName(writtenByVersion);
|
||||
convert67_0_0UseISO639_3Languages(writtenByVersion);
|
||||
convert67_0_0DefaultAudioFileNames(writtenByVersion);
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user