/[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 1031 by capela, Mon Jan 15 11:08:28 2007 UTC revision 1365 by schoenebeck, Mon Oct 1 17:22:02 2007 UTC
# Line 2096  lscp_status_t lscp_set_fxsend_midi_contr Line 2096  lscp_status_t lscp_set_fxsend_midi_contr
2096          if (iSamplerChannel < 0 || iFxSend < 0 || iMidiController < 0 || iMidiController > 127)          if (iSamplerChannel < 0 || iFxSend < 0 || iMidiController < 0 || iMidiController > 127)
2097                  return LSCP_FAILED;                  return LSCP_FAILED;
2098    
2099          sprintf(szQuery, "SET FX_SEND MIDI_CONTROLLER %d %d %d %d\r\n", iSamplerChannel, iFxSend, iMidiController);          sprintf(szQuery, "SET FX_SEND MIDI_CONTROLLER %d %d %d\r\n", iSamplerChannel, iFxSend, iMidiController);
2100          return lscp_client_query(pClient, szQuery);          return lscp_client_query(pClient, szQuery);
2101  }  }
2102    
# Line 2119  lscp_status_t lscp_set_fxsend_level ( ls Line 2119  lscp_status_t lscp_set_fxsend_level ( ls
2119          if (iSamplerChannel < 0 || iFxSend < 0 || fLevel < 0.0f)          if (iSamplerChannel < 0 || iFxSend < 0 || fLevel < 0.0f)
2120                  return LSCP_FAILED;                  return LSCP_FAILED;
2121    
2122          sprintf(szQuery, "SET FX_SEND LEVEL %d %d %d %g\r\n", iSamplerChannel, iFxSend, fLevel);          sprintf(szQuery, "SET FX_SEND LEVEL %d %d %f\r\n", iSamplerChannel, iFxSend, fLevel);
2123          return lscp_client_query(pClient, szQuery);          return lscp_client_query(pClient, szQuery);
2124  }  }
2125    
# Line 2628  lscp_status_t lscp_clear_midi_instrument Line 2628  lscp_status_t lscp_clear_midi_instrument
2628          return lscp_client_query(pClient, szQuery);          return lscp_client_query(pClient, szQuery);
2629  }  }
2630    
2631    /**
2632     * Open an instrument editor application for the instrument on the given
2633     * sampler channel:
2634     * EDIT INSTRUMENT <sampler-channel>
2635     *
2636     * @param pClient         Pointer to client instance structure.
2637     * @param iSamplerChannel Sampler Channel.
2638     *
2639     * @returns LSCP_OK on success, LSCP_FAILED otherwise.
2640     */
2641    lscp_status_t lscp_edit_instrument (lscp_client_t *pClient, int iSamplerChannel)
2642    {
2643            char szQuery[LSCP_BUFSIZ];
2644            snprintf(szQuery, LSCP_BUFSIZ, "EDIT INSTRUMENT %d\r\n", iSamplerChannel);
2645            return lscp_client_query(pClient, szQuery);
2646    }
2647    
2648    
2649  // end of client.c  // end of client.c

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

  ViewVC Help
Powered by ViewVC