AudioPlaylistSource::AudioPlaylistSource (Session& s, const ID& orig, const std::string& name, boost::shared_ptr<AudioPlaylist> p,
uint32_t chn, frameoffset_t begin, framecnt_t len, Source::Flag flags)
: Source (s, DataType::AUDIO, name)
- , AudioSource (s, name)
, PlaylistSource (s, orig, name, p, DataType::AUDIO, begin, len, flags)
+ , AudioSource (s, name)
, _playlist_channel (chn)
{
AudioSource::_length = len;
AudioPlaylistSource::AudioPlaylistSource (Session& s, const XMLNode& node)
: Source (s, node)
- , AudioSource (s, node)
, PlaylistSource (s, node)
+ , AudioSource (s, node)
{
/* PlaylistSources are never writable, renameable, removable or destructive */
_flags = Flag (_flags & ~(Writable|CanRename|Removable|RemovableIfEmpty|RemoveAtDestroy|Destructive));
return node;
}
-
int
AudioPlaylistSource::set_state (const XMLNode& node, int version)
{
if (with_descendants) {
if (Source::set_state (node, version) ||
- AudioSource::set_state (node, version) ||
- PlaylistSource::set_state (node, version)) {
+ PlaylistSource::set_state (node, version) ||
+ AudioSource::set_state (node, version)) {
return -1;
}
}
return _peak_path;
}
+