1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-26 02:14:22 +00:00

New feature in the (new) jucer: automatic download of the latest source code version. Fix for File::findChildFiles. VST host channels fix.

This commit is contained in:
Julian Storer 2010-09-08 20:44:58 +01:00
parent d2b3c283eb
commit 0ca53b3098
29 changed files with 920 additions and 513 deletions

View file

@ -789,6 +789,42 @@ public:
outputNames.clear();
outputIds.clear();
/* void** hints = 0;
if (snd_device_name_hint (-1, "pcm", &hints) >= 0)
{
for (void** hint = hints; *hint != 0; ++hint)
{
const String name (getHint (*hint, "NAME"));
if (name.isNotEmpty())
{
const String ioid (getHint (*hint, "IOID"));
String desc (getHint (*hint, "DESC"));
if (desc.isEmpty())
desc = name;
desc = desc.replaceCharacters ("\n\r", " ");
DBG ("name: " << name << "\ndesc: " << desc << "\nIO: " << ioid);
if (ioid.isEmpty() || ioid == "Input")
{
inputNames.add (desc);
inputIds.add (name);
}
if (ioid.isEmpty() || ioid == "Output")
{
outputNames.add (desc);
outputIds.add (name);
}
}
}
snd_device_name_free_hint (hints);
}
*/
snd_ctl_t* handle = 0;
snd_ctl_card_info_t* info = 0;
snd_ctl_card_info_alloca (&info);
@ -925,6 +961,14 @@ private:
return (isInput || isOutput) && rates.size() > 0;
}
/*static const String getHint (void* hint, const char* type)
{
char* const n = snd_device_name_get_hint (hint, type);
const String s ((const char*) n);
free (n);
return s;
}*/
ALSAAudioIODeviceType (const ALSAAudioIODeviceType&);
ALSAAudioIODeviceType& operator= (const ALSAAudioIODeviceType&);
};