kopia lustrzana https://github.com/jameshball/osci-render
Make sosci 4 channel input by default, and make osci-render 2 channel input
rodzic
24d5997ed0
commit
600a3db9c4
|
@ -12,10 +12,9 @@
|
|||
#include "components/AudioPlayerComponent.h"
|
||||
|
||||
//==============================================================================
|
||||
CommonAudioProcessor::CommonAudioProcessor()
|
||||
CommonAudioProcessor::CommonAudioProcessor(const BusesProperties& busesProperties)
|
||||
#ifndef JucePlugin_PreferredChannelConfigurations
|
||||
: AudioProcessor (BusesProperties().withInput("Input", juce::AudioChannelSet::namedChannelSet(4), true)
|
||||
.withOutput("Output", juce::AudioChannelSet::stereo(), true))
|
||||
: AudioProcessor(busesProperties)
|
||||
#endif
|
||||
{
|
||||
// locking isn't necessary here because we are in the constructor
|
||||
|
|
|
@ -25,7 +25,7 @@ class CommonAudioProcessor : public juce::AudioProcessor, public SampleRateMana
|
|||
#endif
|
||||
{
|
||||
public:
|
||||
CommonAudioProcessor();
|
||||
CommonAudioProcessor(const BusesProperties& busesProperties);
|
||||
~CommonAudioProcessor() override;
|
||||
|
||||
void addAllParameters();
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#include "audio/EffectParameter.h"
|
||||
|
||||
//==============================================================================
|
||||
OscirenderAudioProcessor::OscirenderAudioProcessor() {
|
||||
OscirenderAudioProcessor::OscirenderAudioProcessor() : CommonAudioProcessor(BusesProperties().withInput("Input", juce::AudioChannelSet::namedChannelSet(2), true).withOutput("Output", juce::AudioChannelSet::stereo(), true)) {
|
||||
// locking isn't necessary here because we are in the constructor
|
||||
|
||||
toggleableEffects.push_back(std::make_shared<Effect>(
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#include "SosciPluginEditor.h"
|
||||
#include "audio/EffectParameter.h"
|
||||
|
||||
SosciAudioProcessor::SosciAudioProcessor() {
|
||||
SosciAudioProcessor::SosciAudioProcessor() : CommonAudioProcessor(BusesProperties().withInput("Input", juce::AudioChannelSet::namedChannelSet(4), true).withOutput("Output", juce::AudioChannelSet::stereo(), true)) {
|
||||
// demo audio file on standalone only
|
||||
if (juce::JUCEApplicationBase::isStandaloneApp()) {
|
||||
std::unique_ptr<juce::InputStream> stream = std::make_unique<juce::MemoryInputStream>(BinaryData::sosci_flac, BinaryData::sosci_flacSize, false);
|
||||
|
|
Ładowanie…
Reference in New Issue