2 |
// |
// |
3 |
/**************************************************************************** |
/**************************************************************************** |
4 |
liblscp - LinuxSampler Control Protocol API |
liblscp - LinuxSampler Control Protocol API |
5 |
Copyright (C) 2004-2007, rncbc aka Rui Nuno Capela. All rights reserved. |
Copyright (C) 2004-2008, rncbc aka Rui Nuno Capela. All rights reserved. |
6 |
|
|
7 |
This library is free software; you can redistribute it and/or |
This library is free software; you can redistribute it and/or |
8 |
modify it under the terms of the GNU Lesser General Public |
modify it under the terms of the GNU Lesser General Public |
90 |
case LSCP_EVENT_MISCELLANEOUS: |
case LSCP_EVENT_MISCELLANEOUS: |
91 |
pszText = "MISCELLANEOUS"; |
pszText = "MISCELLANEOUS"; |
92 |
break; |
break; |
93 |
|
case LSCP_EVENT_CHANNEL_MIDI: |
94 |
|
pszText = "CHANNEL_MIDI"; |
95 |
|
break; |
96 |
case LSCP_EVENT_NONE: |
case LSCP_EVENT_NONE: |
97 |
default: |
default: |
98 |
break; |
break; |
144 |
event = LSCP_EVENT_MIDI_INSTRUMENT_INFO; |
event = LSCP_EVENT_MIDI_INSTRUMENT_INFO; |
145 |
else if (strcasecmp(pszText, "MISCELLANEOUS") == 0) |
else if (strcasecmp(pszText, "MISCELLANEOUS") == 0) |
146 |
event = LSCP_EVENT_MISCELLANEOUS; |
event = LSCP_EVENT_MISCELLANEOUS; |
147 |
|
else if (strcasecmp(pszText, "CHANNEL_MIDI") == 0) |
148 |
|
event = LSCP_EVENT_CHANNEL_MIDI; |
149 |
} |
} |
150 |
|
|
151 |
return event; |
return event; |