Vapor: prevent export when there are more than 128 channels
This commit is contained in:
parent
5880e51e92
commit
80098c6a86
|
@ -31,6 +31,7 @@
|
|||
#include "ardour/export_timespan.h"
|
||||
#include "ardour/profile.h"
|
||||
#include "ardour/session_directory.h"
|
||||
#include "ardour/surround_return.h"
|
||||
|
||||
#include "nag.h"
|
||||
#include "simple_export_dialog.h"
|
||||
|
@ -159,6 +160,11 @@ SimpleExportDialog::set_session (ARDOUR::Session* s)
|
|||
return;
|
||||
}
|
||||
|
||||
if (_vapor_export && (s->surround_master ()->surround_return ()->total_n_channels () > 128)) {
|
||||
set_error ("Error: ADM/BWN files cannot contain more than 128 channels.");
|
||||
return;
|
||||
}
|
||||
|
||||
/* check range */
|
||||
Location* srl (s->locations ()->session_range_location ());
|
||||
TimeSelection const& tsel (_editor.get_selection ().time);
|
||||
|
|
Loading…
Reference in New Issue