#include "compose.hpp"
#include "dcpomatic_assert.h"
#include <samplerate.h>
+#include <iostream>
#include "i18n.h"
using std::cout;
using std::pair;
using std::make_pair;
+using std::runtime_error;
using boost::shared_ptr;
/** @param in Input sampling rate (Hz)
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));
}
}