/[svn]/liblscp/trunk/src/common.c
ViewVC logotype

Diff of /liblscp/trunk/src/common.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 977 by capela, Sun Dec 17 15:08:35 2006 UTC revision 3663 by schoenebeck, Sun Dec 22 12:41:28 2019 UTC
# Line 2  Line 2 
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
# Line 23  Line 23 
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:
# Line 908  void lscp_channel_info_free ( lscp_chann Line 909  void lscp_channel_info_free ( lscp_chann
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)
# Line 1062  int lscp_param_concat ( char *pszBuffer, Line 1063  int lscp_param_concat ( char *pszBuffer,
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    

Legend:
Removed from v.977  
changed lines
  Added in v.3663

  ViewVC Help
Powered by ViewVC