API change: expose session-archive compression-level
This commit is contained in:
parent
7613c9cb34
commit
0802a0872f
@ -42,6 +42,7 @@
|
||||
|
||||
#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"
|
||||
@ -523,7 +524,11 @@ public:
|
||||
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);
|
||||
|
@ -5217,6 +5217,7 @@ int
|
||||
Session::archive_session (const std::string& dest,
|
||||
const std::string& name,
|
||||
ArchiveEncode compress_audio,
|
||||
FileArchive::CompressionLevel compression_level,
|
||||
bool only_used_sources,
|
||||
Progress* progress)
|
||||
{
|
||||
@ -5539,7 +5540,7 @@ Session::archive_session (const std::string& dest,
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user