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

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

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

revision 1365 by schoenebeck, Mon Oct 1 17:22:02 2007 UTC revision 1368 by capela, Tue Oct 2 07:16:59 2007 UTC
# Line 2629  lscp_status_t lscp_clear_midi_instrument Line 2629  lscp_status_t lscp_clear_midi_instrument
2629  }  }
2630    
2631  /**  /**
2632   * Open an instrument editor application for the instrument on the given   * Open an instrument editor application for the instrument
2633   * sampler channel:   * on the given sampler channel:
2634   * EDIT INSTRUMENT <sampler-channel>   * EDIT INSTRUMENT <sampler-channel>
2635   *   *
2636   * @param pClient         Pointer to client instance structure.   * @param pClient         Pointer to client instance structure.
# Line 2638  lscp_status_t lscp_clear_midi_instrument Line 2638  lscp_status_t lscp_clear_midi_instrument
2638   *   *
2639   * @returns LSCP_OK on success, LSCP_FAILED otherwise.   * @returns LSCP_OK on success, LSCP_FAILED otherwise.
2640   */   */
2641  lscp_status_t lscp_edit_instrument (lscp_client_t *pClient, int iSamplerChannel)  lscp_status_t lscp_edit_instrument ( lscp_client_t *pClient, int iSamplerChannel )
2642  {  {
2643          char szQuery[LSCP_BUFSIZ];          char szQuery[LSCP_BUFSIZ];
2644          snprintf(szQuery, LSCP_BUFSIZ, "EDIT INSTRUMENT %d\r\n", iSamplerChannel);  
2645            if (iSamplerChannel < 0)
2646                    return LSCP_FAILED;
2647    
2648            sprintf(szQuery, "EDIT INSTRUMENT %d\r\n", iSamplerChannel);
2649    
2650          return lscp_client_query(pClient, szQuery);          return lscp_client_query(pClient, szQuery);
2651  }  }
2652    

Legend:
Removed from v.1365  
changed lines
  Added in v.1368

  ViewVC Help
Powered by ViewVC