56 cnt = std::min (cnt, std::max<samplecnt_t> (0, _length.samples() -
start));
float sample_rate() const
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
SilentFileSource(Session &s, const XMLNode &x, samplecnt_t len, float srate)
bool can_be_analysed() const
samplecnt_t write_unlocked(Sample const *, samplecnt_t)
samplecnt_t read_unlocked(Sample *dst, samplepos_t start, samplecnt_t cnt) const
bool clamped_at_unity() const
void set_header_natural_position()
void set_length(samplecnt_t len)
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::timecnt_t timecnt_t
Temporal::samplepos_t samplepos_t