22 #include "libardour-config.h"
90 for (
int n = 0; n < 2; ++n) {
106 PeaksToBuild.broadcast ();
124 #ifdef BOOST_SP_ENABLE_DEBUG_HOOKS
147 if (node.
property (
"playlist") != 0) {
152 if (setup_peakfile (ap,
true)) {
170 #ifdef BOOST_SP_ENABLE_DEBUG_HOOKS
174 if (setup_peakfile (ret, defer_peaks)) {
184 #ifdef HAVE_COREAUDIO
189 #ifdef BOOST_SP_ENABLE_DEBUG_HOOKS
194 if (setup_peakfile (ret, defer_peaks)) {
210 #ifdef BOOST_SP_ENABLE_DEBUG_HOOKS
223 int chn,
Source::Flag flags,
bool announce,
bool defer_peaks)
232 #ifdef BOOST_SP_ENABLE_DEBUG_HOOKS
237 if (setup_peakfile (ret, defer_peaks)) {
249 #ifdef HAVE_COREAUDIO
252 #ifdef BOOST_SP_ENABLE_DEBUG_HOOKS
256 if (setup_peakfile (ret, defer_peaks)) {
279 #ifdef BOOST_SP_ENABLE_DEBUG_HOOKS
296 bool destructive,
framecnt_t rate,
bool announce,
bool defer_peaks)
302 s.
config.get_native_file_data_format(),
303 s.
config.get_native_file_header_format(),
308 #ifdef BOOST_SP_ENABLE_DEBUG_HOOKS
313 if (setup_peakfile (ret, defer_peaks)) {
331 #ifdef BOOST_SP_ENABLE_DEBUG_HOOKS
355 #ifdef BOOST_SP_ENABLE_DEBUG_HOOKS
360 if (setup_peakfile (ret,
false)) {
374 error <<
_(
"Recovery attempted on a MIDI file - not implemented") <<
endmsg;
399 if (setup_peakfile (ret, defer_peaks)) {
static Glib::Threads::Mutex peak_building_lock
virtual int setup_peakfile()
const std::string & value() const
Glib::Threads::Mutex::Lock Lock
shared_ptr< T > dynamic_pointer_cast(shared_ptr< U > const &r)
static void create_per_thread_pool(const std::string &n, uint32_t nitems)
LIBPBD_API Transmitter error
std::ostream & endmsg(std::ostream &ostr)
static boost::shared_ptr< Source > createExternal(DataType type, Session &, const std::string &path, int chn, Source::Flag flags, bool announce=true, bool async=false)
SessionConfiguration config
LIBARDOUR_API PBD::PropertyDescriptor< framepos_t > start
static boost::shared_ptr< Source > createFromPlaylist(DataType type, Session &s, boost::shared_ptr< Playlist > p, const PBD::ID &orig, const std::string &name, uint32_t chn, frameoffset_t start, framecnt_t len, bool copy, bool defer_peaks)
static boost::shared_ptr< Source > createSilent(Session &, const XMLNode &node, framecnt_t nframes, float sample_rate)
static std::list< boost::weak_ptr< AudioSource > > files_with_peaks
XMLProperty * property(const char *)
static const Source::Flag default_writable_flags
static void peak_thread_work()
static boost::shared_ptr< Source > create(Session &, const XMLNode &node, bool async=false)
Glib::Threads::Mutex & mutex()
void load_model(const Glib::Threads::Mutex::Lock &lock, bool force_reload=false)
virtual bool check_for_analysis_data_on_disk()
static PBD::Signal1< void, boost::shared_ptr< Source > > SourceCreated
static Glib::Threads::Cond PeaksToBuild
static boost::shared_ptr< Source > createForRecovery(DataType type, Session &, const std::string &path, int chn)
static int setup_peakfile(boost::shared_ptr< Source >, bool async)
static boost::shared_ptr< Source > createWritable(DataType type, Session &, const std::string &path, bool destructive, framecnt_t rate, bool announce=true, bool async=false)
std::string string_compose(const std::string &fmt, const T1 &o1)