45 std::string
construct_peak_filepath (
const std::string& audio_path,
const bool in_session =
false,
const bool old_peak_name =
false)
const;
50 return safe_audio_file_extension(path);
66 void set_gain (
float g,
bool temporarily =
false);
100 int init (
const std::string& idstr,
bool must_exist);
109 static char bwf_country_code[3];
110 static char bwf_organization_code[4];
111 static char bwf_serial_number[13];
static samplecnt_t header_position_offset
static PBD::Signal< void()> HeaderPositionOffsetChanged
int init(const std::string &idstr, bool must_exist)
bool can_be_analysed() const
AudioFileSource(Session &, const std::string &path, Source::Flag flags)
AudioFileSource(Session &, const XMLNode &, bool must_exist=true)
int set_state(const XMLNode &, int version)
void set_gain(float g, bool temporarily=false)
static bool get_soundfile_info(const std::string &path, SoundFileInfo &_info, std::string &error)
std::string construct_peak_filepath(const std::string &audio_path, const bool in_session=false, const bool old_peak_name=false) const
static void set_bwf_serial_number(int)
bool safe_file_extension(const std::string &path) const
virtual void mark_capture_start(samplepos_t)
virtual void set_header_natural_position()=0
int move_dependents_to_trash()
virtual samplepos_t last_capture_start_sample() const
static bool safe_audio_file_extension(const std::string &path)
static bool is_empty(Session &, std::string path)
AudioFileSource(Session &, const std::string &path, const std::string &origin, Source::Flag flags, SampleFormat samp_format, HeaderFormat hdr_format)
static void set_header_position_offset(samplecnt_t offset)
virtual int flush_header()=0
virtual ~AudioFileSource()
virtual bool one_of_several_channels() const
static Sample * get_interleave_buffer(samplecnt_t size)
void mark_streaming_write_completed(const WriterLock &lock, Temporal::timecnt_t const &duration)
virtual void clear_capture_marks()
virtual void handle_header_position_change()
virtual void mark_capture_end()
virtual int update_header(samplepos_t when, struct tm &, time_t)=0
XMLNode & get_state() const
AudioFileSource(Session &, const std::string &path, Source::Flag flags, bool)
bool can_truncate_peaks() const
Glib::Threads::RWLock::WriterLock WriterLock
Temporal::samplecnt_t samplecnt_t
Temporal::samplepos_t samplepos_t