summaryrefslogtreecommitdiff
path: root/src/lib/resampler.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-10-20 10:49:29 +0100
committerCarl Hetherington <cth@carlh.net>2015-10-20 10:49:29 +0100
commite0adfd85dd7987ee2b77eea7f6d3c13885729a38 (patch)
tree924ed417edc2c7c579a58c868d8370f3346008d9 /src/lib/resampler.cc
parent4a18e763a17cf046fabe3aad7ab66546124a93a9 (diff)
Replace StringError with the equivalent std::runtime_error.
Diffstat (limited to 'src/lib/resampler.cc')
-rw-r--r--src/lib/resampler.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/resampler.cc b/src/lib/resampler.cc
index c18bad3ac..4010390b8 100644
--- a/src/lib/resampler.cc
+++ b/src/lib/resampler.cc
@@ -30,6 +30,7 @@
using std::cout;
using std::pair;
using std::make_pair;
+using std::runtime_error;
using boost::shared_ptr;
/** @param in Input sampling rate (Hz)
@@ -45,7 +46,7 @@ Resampler::Resampler (int in, int out, int channels, bool fast)
int error;
_src = src_new (fast ? SRC_LINEAR : SRC_SINC_BEST_QUALITY, _channels, &error);
if (!_src) {
- throw StringError (String::compose (N_("could not create sample-rate converter (%1)"), error));
+ throw runtime_error (String::compose (N_("could not create sample-rate converter (%1)"), error));
}
}