23 #include <samplerate.h>
42 float sample_rate ()
const {
return _session.nominal_sample_rate(); }
std::shared_ptr< AudioFileSource > _source
static const uint32_t max_blocksize
bool can_be_analysed() const
bool clamped_at_unity() const
samplecnt_t readable_length_samples() const
samplecnt_t read_unlocked(Sample *dst, samplepos_t start, samplecnt_t cnt) const
void set_length(samplecnt_t)
SrcFileSource(Session &, std::shared_ptr< AudioFileSource >, SrcQuality srcq=SrcQuality(SrcQuick))
int update_header(samplepos_t, struct tm &, time_t)
int read_peaks_with_fpp(PeakData *peaks, samplecnt_t npeaks, samplepos_t, samplecnt_t, double, samplecnt_t) const
samplepos_t _target_position
float sample_rate() const
samplecnt_t src_buffer_size
samplepos_t _source_position
timepos_t natural_position() const
samplecnt_t write_unlocked(Sample const *, samplecnt_t)
void set_header_natural_position()
timepos_t scale(ratio_t const &n) const
void peaks(const float *data, float &min, float &max, uint32_t n_samples)
void memset(float *data, const float val, const uint32_t n_samples)
PBD::PropertyDescriptor< timepos_t > start
Temporal::samplecnt_t samplecnt_t
Temporal::timepos_t timepos_t
Temporal::samplepos_t samplepos_t