20 #include "libardour-config.h"
26 #include <glibmm/fileutils.h>
27 #include <glibmm/miscutils.h>
99 error <<
_(
"No playlist ID in PlaylistSource XML!") <<
endmsg;
110 for (niter = nlist.begin(); niter != nlist.end(); ++niter) {
111 if ((*niter)->name() ==
"Playlist") {
118 error <<
_(
"Could not construct playlist for PlaylistSource from session data!") <<
endmsg;
124 if ((prop = node.
property (
X_(
"name"))) == 0) {
130 if ((prop = node.
property (
X_(
"offset"))) == 0) {
135 if ((prop = node.
property (
X_(
"length"))) == 0) {
145 if ((prop = node.
property (
X_(
"original"))) == 0) {
frameoffset_t _playlist_offset
ARDOUR::Session & _session
int set_state(const XMLNode &, int version)
const std::string & value() const
LIBPBD_API Transmitter error
const XMLNodeList & children(const std::string &str=std::string()) const
std::ostream & endmsg(std::ostream &ostr)
std::list< XMLNode * > XMLNodeList
boost::shared_ptr< Playlist > _playlist
PlaylistSource(Session &, const PBD::ID &, const std::string &name, boost::shared_ptr< Playlist >, DataType, frameoffset_t begin, framecnt_t len, Source::Flag flags)
XMLProperty * property(const char *)
const PBD::ID & id() const
virtual bool set_name(const std::string &str)
void print(char *buf, uint32_t bufsize) const
bool set_id(const XMLNode &)
void add_state(XMLNode &)
static int loading_state_version
uint32_t max_source_level() const
XMLProperty * add_property(const char *name, const std::string &value)
virtual ~PlaylistSource()
void add_child_nocopy(XMLNode &)
framecnt_t _playlist_length
XMLNodeList::const_iterator XMLNodeConstIterator
static boost::shared_ptr< Playlist > create(Session &, const XMLNode &, bool hidden=false, bool unused=false)