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"
+          );
     }
   }
 
