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 |
23 |
#include "common.h" |
#include "common.h" |
24 |
|
|
25 |
#include <ctype.h> |
#include <ctype.h> |
26 |
|
#include <sys/time.h> |
27 |
|
|
28 |
|
|
29 |
// Split chunk size magic: |
// Split chunk size magic: |
909 |
if (pChannelInfo->engine_name) |
if (pChannelInfo->engine_name) |
910 |
free(pChannelInfo->engine_name); |
free(pChannelInfo->engine_name); |
911 |
if (pChannelInfo->audio_routing) |
if (pChannelInfo->audio_routing) |
912 |
lscp_szsplit_destroy(pChannelInfo->audio_routing); |
lscp_isplit_destroy(pChannelInfo->audio_routing); |
913 |
if (pChannelInfo->instrument_file) |
if (pChannelInfo->instrument_file) |
914 |
free(pChannelInfo->instrument_file); |
free(pChannelInfo->instrument_file); |
915 |
if (pChannelInfo->instrument_name) |
if (pChannelInfo->instrument_name) |
1063 |
} |
} |
1064 |
|
|
1065 |
|
|
1066 |
|
//------------------------------------------------------------------------- |
1067 |
|
// Effect struct helper functions. |
1068 |
|
|
1069 |
|
void lscp_fxsend_info_init ( lscp_fxsend_info_t *pFxSendInfo ) |
1070 |
|
{ |
1071 |
|
pFxSendInfo->name = NULL; |
1072 |
|
pFxSendInfo->midi_controller = 0; |
1073 |
|
pFxSendInfo->audio_routing = NULL; |
1074 |
|
pFxSendInfo->level = 0.0f; |
1075 |
|
} |
1076 |
|
|
1077 |
|
void lscp_fxsend_info_free ( lscp_fxsend_info_t *pFxSendInfo ) |
1078 |
|
{ |
1079 |
|
if (pFxSendInfo->name) |
1080 |
|
free(pFxSendInfo->name); |
1081 |
|
if (pFxSendInfo->audio_routing) |
1082 |
|
lscp_isplit_destroy(pFxSendInfo->audio_routing); |
1083 |
|
} |
1084 |
|
|
1085 |
|
void lscp_fxsend_info_reset (lscp_fxsend_info_t *pFxSendInfo ) |
1086 |
|
{ |
1087 |
|
lscp_fxsend_info_free(pFxSendInfo); |
1088 |
|
lscp_fxsend_info_init(pFxSendInfo); |
1089 |
|
} |
1090 |
|
|
1091 |
|
|
1092 |
//------------------------------------------------------------------------- |
//------------------------------------------------------------------------- |
1093 |
// MIDI instrument info struct helper functions. |
// MIDI instrument info struct helper functions. |
1094 |
|
|