mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 16:46:35 +01:00
Vapor: prevent export when there are more than 128 channels
This commit is contained in:
parent
5880e51e92
commit
80098c6a86
1 changed files with 6 additions and 0 deletions
|
|
@ -31,6 +31,7 @@
|
||||||
#include "ardour/export_timespan.h"
|
#include "ardour/export_timespan.h"
|
||||||
#include "ardour/profile.h"
|
#include "ardour/profile.h"
|
||||||
#include "ardour/session_directory.h"
|
#include "ardour/session_directory.h"
|
||||||
|
#include "ardour/surround_return.h"
|
||||||
|
|
||||||
#include "nag.h"
|
#include "nag.h"
|
||||||
#include "simple_export_dialog.h"
|
#include "simple_export_dialog.h"
|
||||||
|
|
@ -159,6 +160,11 @@ SimpleExportDialog::set_session (ARDOUR::Session* s)
|
||||||
return;
|
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 */
|
/* check range */
|
||||||
Location* srl (s->locations ()->session_range_location ());
|
Location* srl (s->locations ()->session_range_location ());
|
||||||
TimeSelection const& tsel (_editor.get_selection ().time);
|
TimeSelection const& tsel (_editor.get_selection ().time);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue