1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Avoided some deprecation warnings when building hosts on Windows

This commit is contained in:
jules 2016-01-05 16:39:21 +00:00
parent 7435ab9c4a
commit d406cacc5f
4 changed files with 40 additions and 36 deletions

View file

@ -227,19 +227,24 @@ public:
{
String tip;
if (index_ == FilterGraph::midiChannelNumber)
if (index == FilterGraph::midiChannelNumber)
{
tip = isInput ? "MIDI Input" : "MIDI Output";
tip = isInput ? "MIDI Input"
: "MIDI Output";
}
else
{
if (isInput)
tip = node->getProcessor()->getInputChannelName (index_);
else
tip = node->getProcessor()->getOutputChannelName (index_);
const AudioProcessor::AudioBusArrangement& busArrangement = node->getProcessor()->busArrangement;
const Array<AudioProcessor::AudioProcessorBus>& buses = isInput ? busArrangement.inputBuses
: busArrangement.outputBuses;
if (buses.size() > 0)
tip = AudioChannelSet::getChannelTypeName (buses.getReference(0).channels.getTypeOfChannel (index));
if (tip.isEmpty())
tip = (isInput ? "Input " : "Output ") + String (index_ + 1);
tip = (isInput ? "Input "
: "Output ") + String (index + 1);
}
setTooltip (tip);