Skip to content

Commit

Permalink
Fix bus size due to init order and simplify scene supported buses
Browse files Browse the repository at this point in the history
  • Loading branch information
firthm01 committed Feb 29, 2024
1 parent d5e1583 commit 4aa809b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,16 +125,9 @@ void SceneAudioProcessor::releaseResources() {}
bool SceneAudioProcessor::isBusesLayoutSupported(
const BusesLayout& layouts) const {

if(layouts.inputBuses.size() != 1)
return false;
if (layouts.inputBuses[0] !=
AudioChannelSet::discreteChannels(numDawChannels_))
return false;
auto i = layouts.getMainInputChannels();
return i == numDawChannels_;

if(layouts.outputBuses.size() != 0)
return false;

return true;
}

void SceneAudioProcessor::processBlock(AudioBuffer<float>& buffer,
Expand Down
2 changes: 1 addition & 1 deletion reaper-adm-export-source-plugin/src/PluginProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
AdmStemPluginAudioProcessor::AdmStemPluginAudioProcessor()
#ifndef JucePlugin_PreferredChannelConfigurations
: AudioProcessor (BusesProperties()
.withInput("Input", AudioChannelSet::discreteChannels(numDawChannels_), true)
.withInput("Input", AudioChannelSet::discreteChannels(MAX_DAW_CHANNELS), true)
)
#endif
{
Expand Down

0 comments on commit 4aa809b

Please sign in to comment.