Cont'd backend support for demo-noise 1e7207f9ec
This commit is contained in:
parent
40aa1b3c91
commit
f89e72d86d
|
@ -117,6 +117,9 @@ class LIBARDOUR_API ExportFormatManager : public PBD::ScopedConnectionList
|
|||
void select_normalize_lufs (float value);
|
||||
void select_normalize_dbtp (float value);
|
||||
void select_tagging (bool tag);
|
||||
void select_demo_noise_level (float value);
|
||||
void select_demo_noise_duration (int value);
|
||||
void select_demo_noise_interval (int value);
|
||||
|
||||
private:
|
||||
|
||||
|
|
|
@ -387,6 +387,27 @@ ExportFormatManager::select_normalize_dbtp (float value)
|
|||
check_for_description_change ();
|
||||
}
|
||||
|
||||
void
|
||||
ExportFormatManager::select_demo_noise_level (float value)
|
||||
{
|
||||
current_selection->set_demo_noise_level (value);
|
||||
check_for_description_change ();
|
||||
}
|
||||
|
||||
void
|
||||
ExportFormatManager::select_demo_noise_duration (int value)
|
||||
{
|
||||
current_selection->set_demo_noise_duration (value);
|
||||
check_for_description_change ();
|
||||
}
|
||||
|
||||
void
|
||||
ExportFormatManager::select_demo_noise_interval (int value)
|
||||
{
|
||||
current_selection->set_demo_noise_interval (value);
|
||||
check_for_description_change ();
|
||||
}
|
||||
|
||||
void
|
||||
ExportFormatManager::select_tagging (bool tag)
|
||||
{
|
||||
|
|
|
@ -677,8 +677,8 @@ ExportFormatSpecification::description (bool include_name)
|
|||
components.push_back ("CUE");
|
||||
}
|
||||
|
||||
if (_with_mp4chaps) {
|
||||
components.push_back ("MP4ch");
|
||||
if (_demo_noise_duration > 0 && _demo_noise_interval > 0) {
|
||||
components.push_back ("Demo-Noise");
|
||||
}
|
||||
|
||||
if (!_command.empty()) {
|
||||
|
|
|
@ -459,8 +459,8 @@ ExportGraphBuilder::SFC::SFC (ExportGraphBuilder &parent, FileSpec const & new_c
|
|||
samplecnt_t sample_rate = parent.session.nominal_sample_rate();
|
||||
demo_noise_adder.reset (new DemoNoiseAdder (channels));
|
||||
demo_noise_adder->init (max_samples,
|
||||
sample_rate * config.format->demo_noise_interval (),
|
||||
sample_rate * config.format->demo_noise_duration (),
|
||||
sample_rate * config.format->demo_noise_interval () / 1000,
|
||||
sample_rate * config.format->demo_noise_duration () / 1000,
|
||||
config.format->demo_noise_level ());
|
||||
if (intermediate) { intermediate->add_output (demo_noise_adder); }
|
||||
intermediate = demo_noise_adder;
|
||||
|
|
Loading…
Reference in New Issue
Block a user