25 #include "ardour/debug.h"
44 assert(
_source->n_channels() == 1);
46 int src_type = SRC_SINC_BEST_QUALITY;
50 src_type = SRC_SINC_BEST_QUALITY;
53 src_type = SRC_SINC_MEDIUM_QUALITY;
56 src_type = SRC_SINC_FASTEST;
59 src_type = SRC_ZERO_ORDER_HOLD;
62 src_type = SRC_LINEAR;
74 if ((
_src_state = src_new (src_type, 1, &err)) == 0) {
100 const double srccnt = cnt /
_ratio;
156 while (generated < cnt) {
framecnt_t nominal_frame_rate() const
shared_ptr< T > dynamic_pointer_cast(shared_ptr< U > const &r)
static const uint32_t blocksize
LIBPBD_API Transmitter error
framepos_t _target_position
std::ostream & endmsg(std::ostream &ostr)
LIBARDOUR_API uint64_t AudioPlayback
LIBARDOUR_API PBD::PropertyDescriptor< framepos_t > start
SrcFileSource(Session &, boost::shared_ptr< AudioFileSource >, SrcQuality srcq=SrcQuality(SrcQuick))
framepos_t _source_position
#define DEBUG_TRACE(bits, str)
boost::shared_ptr< AudioFileSource > _source
framecnt_t src_buffer_size
std::string string_compose(const std::string &fmt, const T1 &o1)
framecnt_t read_unlocked(Sample *dst, framepos_t start, framecnt_t cnt) const