20 #ifndef __ardour_silentfilesource_h__
21 #define __ardour_silentfilesource_h__
55 memset (dst, 0,
sizeof (
Sample) * cnt);
65 memset (peaks, 0,
sizeof (
PeakData) * npeaks);
SilentFileSource(Session &s, const XMLNode &x, framecnt_t len, float srate)
float sample_rate() const
void set_header_timeline_position()
framecnt_t write_unlocked(Sample *, framecnt_t)
int read_peaks_with_fpp(PeakData *peaks, framecnt_t npeaks, framepos_t, framecnt_t, double, framecnt_t) const
void set_length(framecnt_t len)
bool clamped_at_unity() const
framecnt_t read_unlocked(Sample *dst, framepos_t, framecnt_t cnt) const
bool can_be_analysed() const
int update_header(framepos_t, struct tm &, time_t)