/[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 1018 by capela, Sun Dec 17 15:08:35 2006 UTC revision 1019 by capela, Thu Jan 11 12:33:05 2007 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 1062  int lscp_param_concat ( char *pszBuffer, Line 1062  int lscp_param_concat ( char *pszBuffer,
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    

Legend:
Removed from v.1018  
changed lines
  Added in v.1019

  ViewVC Help
Powered by ViewVC