Make sosci 4 channel input by default, and make osci-render 2 channel input

pull/278/head
James H Ball 2025-01-12 20:56:38 +00:00
rodzic 24d5997ed0
commit 600a3db9c4
4 zmienionych plików z 5 dodań i 6 usunięć

Wyświetl plik

@ -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

Wyświetl plik

@ -25,7 +25,7 @@ class CommonAudioProcessor : public juce::AudioProcessor, public SampleRateMana
#endif
{
public:
CommonAudioProcessor();
CommonAudioProcessor(const BusesProperties& busesProperties);
~CommonAudioProcessor() override;
void addAllParameters();

Wyświetl plik

@ -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>(

Wyświetl plik

@ -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);