2 |
// |
// |
3 |
/**************************************************************************** |
/**************************************************************************** |
4 |
liblscp - LinuxSampler Control Protocol API |
liblscp - LinuxSampler Control Protocol API |
5 |
Copyright (C) 2004-2006, rncbc aka Rui Nuno Capela. All rights reserved. |
Copyright (C) 2004-2007, 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 |
1062 |
} |
} |
1063 |
|
|
1064 |
|
|
1065 |
|
//------------------------------------------------------------------------- |
1066 |
|
// Effect struct helper functions. |
1067 |
|
|
1068 |
|
void lscp_fxsend_info_init ( lscp_fxsend_info_t *pFxSendInfo ) |
1069 |
|
{ |
1070 |
|
pFxSendInfo->name = NULL; |
1071 |
|
pFxSendInfo->midi_controller = 0; |
1072 |
|
pFxSendInfo->audio_routing = NULL; |
1073 |
|
} |
1074 |
|
|
1075 |
|
void lscp_fxsend_info_free ( lscp_fxsend_info_t *pFxSendInfo ) |
1076 |
|
{ |
1077 |
|
if (pFxSendInfo->name) |
1078 |
|
free(pFxSendInfo->name); |
1079 |
|
if (pFxSendInfo->audio_routing) |
1080 |
|
lscp_szsplit_destroy(pFxSendInfo->audio_routing); |
1081 |
|
} |
1082 |
|
|
1083 |
|
void lscp_fxsend_info_reset (lscp_fxsend_info_t *pFxSendInfo ) |
1084 |
|
{ |
1085 |
|
lscp_fxsend_info_free(pFxSendInfo); |
1086 |
|
lscp_fxsend_info_init(pFxSendInfo); |
1087 |
|
} |
1088 |
|
|
1089 |
|
|
1090 |
//------------------------------------------------------------------------- |
//------------------------------------------------------------------------- |
1091 |
// MIDI instrument info struct helper functions. |
// MIDI instrument info struct helper functions. |
1092 |
|
|