23 #ifndef EDSP_RESAMPLER_HPP 24 #define EDSP_RESAMPLER_HPP 26 #include <edsp/io/internal/resampler/resampler_impl.hpp> 28 namespace edsp {
namespace io {
87 template <
typename InputIt,
typename OutputIt>
89 return impl.process(first, last, d_first);
121 return impl.error_string();
130 return internal::resampler_impl<T>::valid_ratio(ratio);
134 internal::resampler_impl<T> impl;
139 #endif //EDSP_RESAMPLER_HPP This class implements a resampler object to perform sample-rate conversion.
Definition: resampler.hpp:49
resample_quality
The resample_quality enum represents the different configurations that modifies the ressampling proce...
Definition: resampler.hpp:34
Definition: resampler.hpp:37
error_type error() const
Returns the internal error code.
Definition: resampler.hpp:112
size_type process(InputIt first, InputIt last, OutputIt d_first)
Resamples the input elements in the range [first, last) and stores the result in another range...
Definition: resampler.hpp:88
Definition: resampler.hpp:39
Definition: resampler.hpp:38
resample_quality quality() const
Returns the quality used in the resampling process.
Definition: resampler.hpp:96
static bool valid_ratio(value_type ratio)
Checks if a ratio is valid.
Definition: resampler.hpp:129
long size_type
Definition: resampler.hpp:51
const edsp::string_view error_string() const
Returns a description of the internal error code.
Definition: resampler.hpp:120
resampler(size_type channels, resample_quality quality, value_type factor)
Creates a resampler with the given configuration.
Definition: resampler.hpp:60
Definition: resampler.hpp:36
Definition: resampler.hpp:35
error_type reset()
Resets the internal buffers.
Definition: resampler.hpp:104
T value_type
Definition: resampler.hpp:50
Definition: amplifier.hpp:29
int error_type
Definition: resampler.hpp:52
~resampler()=default
Default destructor.