/[svn]/liblscp/trunk/lscp/client.h
ViewVC logotype

Diff of /liblscp/trunk/lscp/client.h

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

revision 977 by capela, Sun Dec 17 15:08:35 2006 UTC revision 2422 by capela, Sun Feb 24 11:22:03 2013 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-2013, 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 64  typedef struct _lscp_channel_info_t Line 64  typedef struct _lscp_channel_info_t
64          char *        engine_name;          char *        engine_name;
65          int           audio_device;          int           audio_device;
66          int           audio_channels;          int           audio_channels;
67          char **       audio_routing;          int  *        audio_routing;
68          char *        instrument_file;          char *        instrument_file;
69          int           instrument_nr;          int           instrument_nr;
70          char *        instrument_name;          char *        instrument_name;
# Line 98  typedef enum _lscp_usage_t Line 98  typedef enum _lscp_usage_t
98  } lscp_usage_t;  } lscp_usage_t;
99    
100    
101    /** Effect send info cache struct. */
102    typedef struct _lscp_fxsend_info_t
103    {
104            char *        name;
105            int           midi_controller;
106            int *         audio_routing;
107            float         level;
108    
109    } lscp_fxsend_info_t;
110    
111    
112  /** MIDI instrument parameter struct. */  /** MIDI instrument parameter struct. */
113  typedef struct _lscp_midi_instrument_t  typedef struct _lscp_midi_instrument_t
114  {  {
115          int map;          int           map;
116          int bank;          int           bank;
117          int prog;          int           prog;
118    
119  } lscp_midi_instrument_t;  } lscp_midi_instrument_t;
120    
# Line 238  lscp_server_info_t *    lscp_get_server_ Line 249  lscp_server_info_t *    lscp_get_server_
249  int                     lscp_get_total_voice_count      (lscp_client_t *pClient);  int                     lscp_get_total_voice_count      (lscp_client_t *pClient);
250  int                     lscp_get_total_voice_count_max  (lscp_client_t *pClient);  int                     lscp_get_total_voice_count_max  (lscp_client_t *pClient);
251    
252    float                   lscp_get_volume                 (lscp_client_t *pClient);
253    lscp_status_t           lscp_set_volume                 (lscp_client_t *pClient, float fVolume);
254    
255    int                     lscp_get_voices                 (lscp_client_t *pClient);
256    lscp_status_t           lscp_set_voices                 (lscp_client_t *pClient, int iMaxVoices);
257    
258    int                     lscp_get_streams                (lscp_client_t *pClient);
259    lscp_status_t           lscp_set_streams                (lscp_client_t *pClient, int iMaxStreams);
260    
261    //-------------------------------------------------------------------------
262    // Effect sends control functions.
263    
264    int                     lscp_create_fxsend              (lscp_client_t *pClient, int iSamplerChannel, int iMidiController, const char *pszFxName);
265    lscp_status_t           lscp_destroy_fxsend             (lscp_client_t *pClient, int iSamplerChannel, int iFxSend);
266    
267    int                     lscp_get_fxsends                (lscp_client_t *pClient, int iSamplerChannel);
268    int *                   lscp_list_fxsends               (lscp_client_t *pClient, int iSamplerChannel);
269    
270    lscp_fxsend_info_t *    lscp_get_fxsend_info            (lscp_client_t *pClient, int iSamplerChannel, int iFxSend);
271    
272    lscp_status_t           lscp_set_fxsend_name            (lscp_client_t *pClient, int iSamplerChannel, int iFxSend, const char *pszFxName);
273    lscp_status_t           lscp_set_fxsend_audio_channel   (lscp_client_t *pClient, int iSamplerChannel, int iFxSend, int iAudioSrc, int iAudioDst);
274    lscp_status_t           lscp_set_fxsend_midi_controller (lscp_client_t *pClient, int iSamplerChannel, int iFxSend, int iMidiController);
275    lscp_status_t           lscp_set_fxsend_level           (lscp_client_t *pClient, int iSamplerChannel, int iFxSend, float fLevel);
276    
277  //-------------------------------------------------------------------------  //-------------------------------------------------------------------------
278  // MIDI instrument mapping control functions.  // MIDI instrument mapping control functions.
279    
# Line 260  lscp_midi_instrument_info_t *lscp_get_mi Line 296  lscp_midi_instrument_info_t *lscp_get_mi
296    
297  lscp_status_t           lscp_clear_midi_instruments     (lscp_client_t *pClient, int iMidiMap);  lscp_status_t           lscp_clear_midi_instruments     (lscp_client_t *pClient, int iMidiMap);
298    
299    //-------------------------------------------------------------------------
300    // Instrument editor functions.
301    
302    lscp_status_t           lscp_edit_channel_instrument    (lscp_client_t *pClient, int iSamplerChannel);
303    
304  #if defined(__cplusplus)  #if defined(__cplusplus)
305  }  }

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

  ViewVC Help
Powered by ViewVC