Browse Source

Made some ALSA midi names customisable.

tags/2021-05-28
jules 13 years ago
parent
commit
6d44c8372f
1 changed files with 10 additions and 2 deletions
  1. +10
    -2
      modules/juce_audio_devices/native/juce_linux_Midi.cpp

+ 10
- 2
modules/juce_audio_devices/native/juce_linux_Midi.cpp View File

@@ -34,6 +34,14 @@
#define JUCE_ALSA_MIDI_OUTPUT_NAME "Juce Midi Output"
#endif
#ifndef JUCE_ALSA_MIDI_INPUT_PORT_NAME
#define JUCE_ALSA_MIDI_INPUT_PORT_NAME "Juce Midi In Port"
#endif
#ifndef JUCE_ALSA_MIDI_OUTPUT_PORT_NAME
#define JUCE_ALSA_MIDI_OUTPUT_PORT_NAME "Juce Midi Out Port"
#endif
//==============================================================================
namespace
{
@@ -74,7 +82,7 @@ namespace
{
snd_seq_set_client_name (seqHandle, JUCE_ALSA_MIDI_INPUT_NAME);
const int portId = snd_seq_create_simple_port (seqHandle, "Juce Midi In Port",
const int portId = snd_seq_create_simple_port (seqHandle, JUCE_ALSA_MIDI_INPUT_PORT_NAME,
SND_SEQ_PORT_CAP_WRITE | SND_SEQ_PORT_CAP_SUBS_WRITE,
SND_SEQ_PORT_TYPE_MIDI_GENERIC);
@@ -84,7 +92,7 @@ namespace
{
snd_seq_set_client_name (seqHandle, JUCE_ALSA_MIDI_OUTPUT_NAME);
const int portId = snd_seq_create_simple_port (seqHandle, "Juce Midi Out Port",
const int portId = snd_seq_create_simple_port (seqHandle, JUCE_ALSA_MIDI_OUTPUT_PORT_NAME,
SND_SEQ_PORT_CAP_READ | SND_SEQ_PORT_CAP_SUBS_READ,
SND_SEQ_PORT_TYPE_MIDI_GENERIC);


Loading…
Cancel
Save