NO-OP: clang-format
This commit is contained in:
parent
2a3eb6dc88
commit
5be4674adb
|
@ -175,7 +175,7 @@ VST3Plugin::default_value (uint32_t port)
|
|||
void
|
||||
VST3Plugin::set_parameter (uint32_t port, float val, sampleoffset_t when)
|
||||
{
|
||||
if (!_plug->active () || _plug->is_loading_state () || AudioEngine::instance()->in_process_thread() ) {
|
||||
if (!_plug->active () || _plug->is_loading_state () || AudioEngine::instance ()->in_process_thread ()) {
|
||||
/* directly use VST3PI::_input_param_changes */
|
||||
_plug->set_parameter (port, val, when);
|
||||
} else {
|
||||
|
@ -286,7 +286,7 @@ PluginOutputConfiguration
|
|||
VST3Plugin::possible_output () const
|
||||
{
|
||||
auto const& bi (_plug->bus_info_out ());
|
||||
if (bi.size() < 2) {
|
||||
if (bi.size () < 2) {
|
||||
return Plugin::possible_output ();
|
||||
}
|
||||
#if 0
|
||||
|
@ -312,8 +312,7 @@ VST3Plugin::possible_output () const
|
|||
if (seen_aux || seen_mono) {
|
||||
sum += i->second.n_chn;
|
||||
oc.insert (sum);
|
||||
}
|
||||
else if (i->second.type == Vst::kAux) {
|
||||
} else if (i->second.type == Vst::kAux) {
|
||||
oc.insert (sum);
|
||||
seen_aux = true;
|
||||
sum += i->second.n_chn;
|
||||
|
@ -718,14 +717,14 @@ VST3Plugin::connect_and_run (BufferSet& bufs,
|
|||
context.systemTime = g_get_monotonic_time ();
|
||||
|
||||
{
|
||||
TempoMap::SharedPtr tmap (TempoMap::use());
|
||||
TempoMap::SharedPtr tmap (TempoMap::use ());
|
||||
const TempoMetric& metric (tmap->metric_at (timepos_t (start)));
|
||||
const BBT_Time& bbt (metric.bbt_at (timepos_t (start)));
|
||||
|
||||
context.tempo = metric.tempo().quarter_notes_per_minute ();
|
||||
context.timeSigNumerator = metric.meter().divisions_per_bar ();
|
||||
context.timeSigDenominator = metric.meter().note_value ();
|
||||
context.projectTimeMusic = DoubleableBeats (metric.tempo().quarters_at_sample (start)).to_double();
|
||||
context.tempo = metric.tempo ().quarter_notes_per_minute ();
|
||||
context.timeSigNumerator = metric.meter ().divisions_per_bar ();
|
||||
context.timeSigDenominator = metric.meter ().note_value ();
|
||||
context.projectTimeMusic = DoubleableBeats (metric.tempo ().quarters_at_sample (start)).to_double ();
|
||||
context.barPositionMusic = bbt.bars * 4; // PPQN, NOT tmap.metric_at(bbt).meter().divisions_per_bar()
|
||||
}
|
||||
|
||||
|
@ -743,7 +742,7 @@ VST3Plugin::connect_and_run (BufferSet& bufs,
|
|||
try {
|
||||
/* loop start/end in quarter notes */
|
||||
|
||||
TempoMap::SharedPtr tmap (TempoMap::use());
|
||||
TempoMap::SharedPtr tmap (TempoMap::use ());
|
||||
context.cycleStartMusic = DoubleableBeats (tmap->quarters_at (looploc->start ())).to_double ();
|
||||
context.cycleEndMusic = DoubleableBeats (tmap->quarters_at (looploc->end ())).to_double ();
|
||||
context.state |= Vst::ProcessContext::kCycleValid;
|
||||
|
@ -1479,7 +1478,7 @@ VST3PI::restartComponent (int32 flags)
|
|||
|
||||
if (flags & Vst::kReloadComponent) {
|
||||
Glib::Threads::Mutex::Lock pl (_process_lock, Glib::Threads::NOT_LOCK);
|
||||
if (!AudioEngine::instance()->in_process_thread() && !_is_loading_state) {
|
||||
if (!AudioEngine::instance ()->in_process_thread () && !_is_loading_state) {
|
||||
pl.acquire ();
|
||||
} else {
|
||||
assert (0); // a plugin should not call this while processing
|
||||
|
@ -1497,7 +1496,7 @@ VST3PI::restartComponent (int32 flags)
|
|||
}
|
||||
if (flags & Vst::kParamValuesChanged) {
|
||||
Glib::Threads::Mutex::Lock pl (_process_lock, Glib::Threads::NOT_LOCK);
|
||||
if (!AudioEngine::instance()->in_process_thread() && !_is_loading_state) {
|
||||
if (!AudioEngine::instance ()->in_process_thread () && !_is_loading_state) {
|
||||
pl.acquire ();
|
||||
}
|
||||
update_shadow_data ();
|
||||
|
@ -1512,7 +1511,7 @@ VST3PI::restartComponent (int32 flags)
|
|||
* changes are automatically picked up.
|
||||
*/
|
||||
Glib::Threads::Mutex::Lock pl (_process_lock, Glib::Threads::NOT_LOCK);
|
||||
if (!AudioEngine::instance()->in_process_thread() && !_is_loading_state) {
|
||||
if (!AudioEngine::instance ()->in_process_thread () && !_is_loading_state) {
|
||||
/* Some plugins (e.g BlendEQ) call this from the process,
|
||||
* IPlugProcessor::ProcessBuffers. In that case taking the
|
||||
* _process_lock would deadlock.
|
||||
|
@ -1753,9 +1752,9 @@ VST3PI::count_channels (Vst::MediaType media, Vst::BusDirection dir, Vst::BusTyp
|
|||
n_channels += bus.channelCount;
|
||||
|
||||
if (dir == Vst::kInput) {
|
||||
_bus_info_in.insert (std::make_pair(i, AudioBusInfo (type, bus.channelCount, bus.flags & Vst::BusInfo::kDefaultActive)));
|
||||
_bus_info_in.insert (std::make_pair (i, AudioBusInfo (type, bus.channelCount, bus.flags & Vst::BusInfo::kDefaultActive)));
|
||||
} else {
|
||||
_bus_info_out.insert (std::make_pair(i, AudioBusInfo (type, bus.channelCount, bus.flags & Vst::BusInfo::kDefaultActive)));
|
||||
_bus_info_out.insert (std::make_pair (i, AudioBusInfo (type, bus.channelCount, bus.flags & Vst::BusInfo::kDefaultActive)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user