Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37047205
en ru br
Репозитории ALT
S:0.23.13-alt1
D:0.13.0-alt1.1
5.1: 0.15.13-alt0.M51.1
4.1: 0.13.1-alt1
4.0: 0.13.0-alt3
3.0: 0.11.5-alt1.1
www.altlinux.org/Changes

Группа :: Звук
Пакет: mpd

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: mpd-0.23.8-alt-fluidsynth-fix-sound-font-location.patch
Скачать


From 4e11cfba8486ece36a7bdc321e92cddabd262acd Mon Sep 17 00:00:00 2001
From: "Konstantin A. Lepikhov" <lakostis@altlinux.ru>
Date: Wed, 20 Jul 2022 10:58:27 +0200
Subject: [PATCH] [ALT] fluidsynth: fix sound font location
---
 doc/plugins.rst                                 | 2 +-
 src/decoder/plugins/FluidsynthDecoderPlugin.cxx | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/doc/plugins.rst b/doc/plugins.rst
index 5216a9b4d..f8d055a5c 100644
--- a/doc/plugins.rst
+++ b/doc/plugins.rst
@@ -411,7 +411,7 @@ MIDI decoder based on `FluidSynth <http://www.fluidsynth.org/>`_.
    * - **sample_rate**
      - The sample rate that shall be synthesized by the plugin. Defaults to 48000.
    * - **soundfont**
-     - The absolute path of the soundfont file. Defaults to :file:`/usr/share/sounds/sf2/FluidR3_GM.sf2`.
+     - The absolute path of the soundfont file. Defaults to :file:`/usr/share/soundfonts/default.sf2`.
 
 gme
 ---
diff --git a/src/decoder/plugins/FluidsynthDecoderPlugin.cxx b/src/decoder/plugins/FluidsynthDecoderPlugin.cxx
index e29fb6958..448884b24 100644
--- a/src/decoder/plugins/FluidsynthDecoderPlugin.cxx
+++ b/src/decoder/plugins/FluidsynthDecoderPlugin.cxx
@@ -81,7 +81,7 @@ fluidsynth_init(const ConfigBlock &block)
 	CheckSampleRate(sample_rate);
 
 	soundfont_path = block.GetBlockValue("soundfont",
-					     "/usr/share/sounds/sf2/FluidR3_GM.sf2");
+					     "/usr/share/soundfonts/default.sf2");
 
 	fluid_set_log_function(LAST_LOG_LEVEL,
 			       fluidsynth_mpd_log_function, nullptr);
-- 
2.33.4
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin