mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-22 01:34:21 +00:00
Removed const-ness from some return types to take advantage of future c++0x advantages.
This commit is contained in:
parent
74469aaa83
commit
0853a9b686
154 changed files with 472 additions and 473 deletions
|
|
@ -177,7 +177,7 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
const StringArray getChannelNames (bool forInput) const
|
||||
StringArray getChannelNames (bool forInput) const
|
||||
{
|
||||
StringArray names;
|
||||
const char** const ports = JUCE_NAMESPACE::jack_get_ports (client, 0, 0, /* JackPortIsPhysical | */
|
||||
|
|
@ -200,8 +200,8 @@ public:
|
|||
return names;
|
||||
}
|
||||
|
||||
const StringArray getOutputChannelNames() { return getChannelNames (false); }
|
||||
const StringArray getInputChannelNames() { return getChannelNames (true); }
|
||||
StringArray getOutputChannelNames() { return getChannelNames (false); }
|
||||
StringArray getInputChannelNames() { return getChannelNames (true); }
|
||||
int getNumSampleRates() { return client != 0 ? 1 : 0; }
|
||||
double getSampleRate (int index) { return client != 0 ? JUCE_NAMESPACE::jack_get_sample_rate (client) : 0; }
|
||||
int getNumBufferSizesAvailable() { return client != 0 ? 1 : 0; }
|
||||
|
|
@ -536,7 +536,7 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
const StringArray getDeviceNames (bool wantInputNames) const
|
||||
StringArray getDeviceNames (bool wantInputNames) const
|
||||
{
|
||||
jassert (hasScanned); // need to call scanForDevices() before doing this
|
||||
return wantInputNames ? inputNames : outputNames;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue