mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-17 00:44:19 +00:00
Small fix for demo plugin code. Minor code clean-ups.
This commit is contained in:
parent
e7326dbbaf
commit
a728139698
60 changed files with 836 additions and 1029 deletions
|
|
@ -912,14 +912,14 @@ public:
|
|||
outputNames.appendNumbersToDuplicates (false, true);
|
||||
}
|
||||
|
||||
const StringArray getDeviceNames (const bool wantInputNames) const
|
||||
const StringArray getDeviceNames (bool wantInputNames) const
|
||||
{
|
||||
jassert (hasScanned); // need to call scanForDevices() before doing this
|
||||
|
||||
return wantInputNames ? inputNames : outputNames;
|
||||
}
|
||||
|
||||
int getDefaultDeviceIndex (const bool forInput) const
|
||||
int getDefaultDeviceIndex (bool forInput) const
|
||||
{
|
||||
jassert (hasScanned); // need to call scanForDevices() before doing this
|
||||
return 0;
|
||||
|
|
@ -927,11 +927,11 @@ public:
|
|||
|
||||
bool hasSeparateInputsAndOutputs() const { return true; }
|
||||
|
||||
int getIndexOfDevice (AudioIODevice* device, const bool asInput) const
|
||||
int getIndexOfDevice (AudioIODevice* device, bool asInput) const
|
||||
{
|
||||
jassert (hasScanned); // need to call scanForDevices() before doing this
|
||||
|
||||
ALSAAudioIODevice* const d = dynamic_cast <ALSAAudioIODevice*> (device);
|
||||
ALSAAudioIODevice* d = dynamic_cast <ALSAAudioIODevice*> (device);
|
||||
if (d == 0)
|
||||
return -1;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue