#include "pbd/error.h"
#include "pbd/event_loop.h"
+#include "pbd/file_archive.h"
#include "pbd/rcu.h"
#include "pbd/reallocpool.h"
#include "pbd/statefuldestructible.h"
FLAC_24BIT
};
- int archive_session (const std::string&, const std::string&, ArchiveEncode compress_audio = FLAC_16BIT, bool only_used_sources = false, Progress* p = 0);
+ int archive_session (const std::string&, const std::string&,
+ ArchiveEncode compress_audio = FLAC_16BIT,
+ PBD::FileArchive::CompressionLevel compression_level = PBD::FileArchive::CompressGood,
+ bool only_used_sources = false,
+ Progress* p = 0);
int restore_state (std::string snapshot_name);
int save_template (const std::string& template_name, const std::string& description = "", bool replace_existing = false);
Session::archive_session (const std::string& dest,
const std::string& name,
ArchiveEncode compress_audio,
+ FileArchive::CompressionLevel compression_level,
bool only_used_sources,
Progress* progress)
{
i->first->set_gain (i->second, true);
}
- int rv = ar.create (filemap, PBD::FileArchive::CompressGood);
+ int rv = ar.create (filemap, compression_level);
remove_directory (to_dir);
return rv;