diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-04-08 18:12:46 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-04-08 18:12:46 +0100 |
| commit | 4a994bc4d9ce9afefdfb668bf9fc0280b1f7c66d (patch) | |
| tree | df94ac949a4f340a906f4d08739cf838c6892021 | |
| parent | cd4daa051e12b29618da8e24712b337f50d869cc (diff) | |
More details when the SRC fails.
| -rw-r--r-- | src/lib/resampler.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/resampler.cc b/src/lib/resampler.cc index 4010390b8..43dc50162 100644 --- a/src/lib/resampler.cc +++ b/src/lib/resampler.cc @@ -93,7 +93,15 @@ Resampler::run (shared_ptr<const AudioBuffers> in) if (r) { delete[] data.data_in; delete[] data.data_out; - throw EncodeError (String::compose (N_("could not run sample-rate converter (%1)"), src_strerror (r))); + throw EncodeError ( + String::compose ( + N_("could not run sample-rate converter (%1) [processing %2 to %3, %4 channels]"), + src_strerror (r), + in_frames, + max_resampled_frames, + _channels + ) + ); } if (data.output_frames_gen == 0) { |
