[SCM] soundscaperenderer/master: More descriptive error-message (Closes: #749529)

umlaeute at users.alioth.debian.org umlaeute at users.alioth.debian.org
Fri Aug 14 18:08:35 UTC 2015


The following commit has been merged in the master branch:
commit 3b41957c57360e42373d7f53d6d406458c26155d
Author: IOhannes m zmölnig <zmoelnig at umlautQ.umlaeute.mur.at>
Date:   Fri Aug 14 19:47:34 2015 +0200

    More descriptive error-message (Closes: #749529)

diff --git a/debian/patches/fix-srate-errormessage.patch b/debian/patches/fix-srate-errormessage.patch
new file mode 100644
index 0000000..22a5b8e
--- /dev/null
+++ b/debian/patches/fix-srate-errormessage.patch
@@ -0,0 +1,22 @@
+Description: more descriptive error message on samplerate mismatch
+ provide suggestions what the user could do to not get the error at all
+Author: IOhannes m zmölnig
+Bug: https://github.com/SoundScapeRenderer/ssr/issues/16
+Last-Update: 2015-08-14
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- soundscaperenderer.orig/apf/apf/sndfiletools.h
++++ soundscaperenderer/apf/apf/sndfiletools.h
+@@ -70,7 +70,11 @@
+     {
+       throw std::logic_error("apf::load_sndfile(): \"" + name
+           + "\" has sample rate " + str::A2S(true_sample_rate) + " instead of "
+-          + str::A2S(sample_rate) + "!");
++          + str::A2S(sample_rate) + "!"
++          + "\nto fix this you should" 
++          + "\n - change your system samplerate to " + str::A2S(true_sample_rate) + "\t OR"
++          + "\n - resample the file to " + str::A2S(sample_rate) + "\n"
++          );
+     }
+   }
+ 
diff --git a/debian/patches/series b/debian/patches/series
index b400224..b62eee9 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 upstreamversion.patch
 exclude_pdf.patch
 g++hack_vararg_template.patch
+fix-srate-errormessage.patch

-- 
soundscaperenderer packaging



More information about the pkg-multimedia-commits mailing list