|
|
@@ -38,7 +38,7 @@ public: |
|
|
|
jassert (instance == nullptr);
|
|
|
|
|
|
|
|
snd_seq_open (&handle, "default", SND_SEQ_OPEN_DUPLEX, 0);
|
|
|
|
|
|
|
|
|
|
|
|
if (handle != nullptr)
|
|
|
|
{
|
|
|
|
snd_seq_nonblock (handle, SND_SEQ_NONBLOCK);
|
|
|
@@ -62,18 +62,18 @@ public: |
|
|
|
|
|
|
|
if (inputThread)
|
|
|
|
inputThread->stopThread (3000);
|
|
|
|
} |
|
|
|
|
|
|
|
static String getAlsaMidiName() |
|
|
|
{ |
|
|
|
#ifdef JUCE_ALSA_MIDI_NAME |
|
|
|
return JUCE_ALSA_MIDI_NAME; |
|
|
|
#else |
|
|
|
if (auto* app = JUCEApplicationBase::getInstance()) |
|
|
|
return app->getApplicationName(); |
|
|
|
|
|
|
|
return "JUCE"; |
|
|
|
#endif |
|
|
|
}
|
|
|
|
|
|
|
|
static String getAlsaMidiName()
|
|
|
|
{
|
|
|
|
#ifdef JUCE_ALSA_MIDI_NAME
|
|
|
|
return JUCE_ALSA_MIDI_NAME;
|
|
|
|
#else
|
|
|
|
if (auto* app = JUCEApplicationBase::getInstance())
|
|
|
|
return app->getApplicationName();
|
|
|
|
|
|
|
|
return "JUCE";
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
using Ptr = ReferenceCountedObjectPtr<AlsaClient>;
|
|
|
|