qsynth/qsynth-0.3.1-soundfonts.patch

27 lines
926 B
Diff
Raw Permalink Normal View History

diff -Nru qsynth-0.3.1.orig/src/qsynthOptions.cpp qsynth-0.3.1/src/qsynthOptions.cpp
--- qsynth-0.3.1.orig/src/qsynthOptions.cpp 2007-07-10 10:00:11.000000000 +0200
+++ qsynth-0.3.1/src/qsynthOptions.cpp 2007-09-25 23:55:58.000000000 +0200
@@ -55,6 +55,9 @@
// Load defaults...
m_settings.beginGroup("/Defaults");
sSoundFontDir = m_settings.value("/SoundFontDir").toString();
+ if (sSoundFontDir == "") {
+ sSoundFontDir = "/usr/share/soundfonts";
+ }
bPresetPreview = m_settings.value("/PresetPreview", false).toBool();
m_settings.endGroup();
@@ -386,7 +389,11 @@
return false;
}
}
-
+
+ if (m_pDefaultSetup->soundfonts.empty() && ::fluid_is_soundfont("/usr/share/soundfonts/default.sf2")) {
+ m_pDefaultSetup->soundfonts.append("/usr/share/soundfonts/default.sf2");
+ m_pDefaultSetup->bankoffsets.append(QString::null);
+ }
// Alright with argument parsing.
return true;
}