/[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 948 by capela, Tue Nov 28 15:31:20 2006 UTC revision 952 by capela, Tue Nov 28 22:46:32 2006 UTC
# Line 42  extern "C" { Line 42  extern "C" {
42  /** Server info cache struct. */  /** Server info cache struct. */
43  typedef struct _lscp_server_info_t  typedef struct _lscp_server_info_t
44  {  {
45      char *        description;          char *        description;
46      char *        version;          char *        version;
47    
48  } lscp_server_info_t;  } lscp_server_info_t;
49    
# Line 51  typedef struct _lscp_server_info_t Line 51  typedef struct _lscp_server_info_t
51  /** Engine info cache struct. */  /** Engine info cache struct. */
52  typedef struct _lscp_engine_info_t  typedef struct _lscp_engine_info_t
53  {  {
54      char *        description;          char *        description;
55      char *        version;          char *        version;
56    
57  } lscp_engine_info_t;  } lscp_engine_info_t;
58    
# Line 60  typedef struct _lscp_engine_info_t Line 60  typedef struct _lscp_engine_info_t
60  /** Channel info cache struct. */  /** Channel info cache struct. */
61  typedef struct _lscp_channel_info_t  typedef struct _lscp_channel_info_t
62  {  {
63      char *        engine_name;          char *        engine_name;
64      int           audio_device;          int           audio_device;
65      int           audio_channels;          int           audio_channels;
66      char **       audio_routing;          char **       audio_routing;
67      char *        instrument_file;          char *        instrument_file;
68      int           instrument_nr;          int           instrument_nr;
69      char *        instrument_name;          char *        instrument_name;
70      int           instrument_status;          int           instrument_status;
71      int           midi_device;          int           midi_device;
72      int           midi_port;          int           midi_port;
73      int           midi_channel;          int           midi_channel;
74      float         volume;          float         volume;
75      int           mute;          int           mute;
76      int           solo;          int           solo;
77    
78  } lscp_channel_info_t;  } lscp_channel_info_t;
79    
# Line 81  typedef struct _lscp_channel_info_t Line 81  typedef struct _lscp_channel_info_t
81  /** Buffer fill cache struct. */  /** Buffer fill cache struct. */
82  typedef struct _lscp_buffer_fill_t  typedef struct _lscp_buffer_fill_t
83  {  {
84      unsigned int  stream_id;          unsigned int  stream_id;
85      unsigned long stream_usage;          unsigned long stream_usage;
86    
87  } lscp_buffer_fill_t;  } lscp_buffer_fill_t;
88    
# Line 90  typedef struct _lscp_buffer_fill_t Line 90  typedef struct _lscp_buffer_fill_t
90  /** Buffer fill stream usage types. */  /** Buffer fill stream usage types. */
91  typedef enum _lscp_usage_t  typedef enum _lscp_usage_t
92  {  {
93      LSCP_USAGE_BYTES = 0,          LSCP_USAGE_BYTES = 0,
94      LSCP_USAGE_PERCENTAGE          LSCP_USAGE_PERCENTAGE
95    
96  } lscp_usage_t;  } lscp_usage_t;
97    
# Line 99  typedef enum _lscp_usage_t Line 99  typedef enum _lscp_usage_t
99  /** MIDI instrument parameter struct. */  /** MIDI instrument parameter struct. */
100  typedef struct _lscp_midi_instrument_t  typedef struct _lscp_midi_instrument_t
101  {  {
102      int bank_msb;          int bank_msb;
103      int bank_lsb;          int bank_lsb;
104      int program;          int program;
105    
106  } lscp_midi_instrument_t;  } lscp_midi_instrument_t;
107    
# Line 109  typedef struct _lscp_midi_instrument_t Line 109  typedef struct _lscp_midi_instrument_t
109  /** MIDI instrument load mode. */  /** MIDI instrument load mode. */
110  typedef enum _lscp_load_mode_t  typedef enum _lscp_load_mode_t
111  {  {
112      LSCP_LOAD_DEFAULT = 0,          LSCP_LOAD_DEFAULT = 0,
113      LSCP_LOAD_ON_DEMAND,          LSCP_LOAD_ON_DEMAND,
114      LSCP_LOAD_ON_DEMAND_HOLD,          LSCP_LOAD_ON_DEMAND_HOLD,
115      LSCP_LOAD_PERSISTENT          LSCP_LOAD_PERSISTENT
116    
117  } lscp_load_mode_t;  } lscp_load_mode_t;
118    
# Line 120  typedef enum _lscp_load_mode_t Line 120  typedef enum _lscp_load_mode_t
120  /** MIDI instrument info cache struct. */  /** MIDI instrument info cache struct. */
121  typedef struct _lscp_midi_instrument_info_t  typedef struct _lscp_midi_instrument_info_t
122  {  {
123      char *           name;          char *           name;
124      char *           engine_name;          char *           engine_name;
125      char *           instrument_file;          char *           instrument_file;
126      int              instrument_nr;          int              instrument_nr;
127      char *           instrument_name;          char *           instrument_name;
128      lscp_load_mode_t load_mode;          lscp_load_mode_t load_mode;
129      float            volume;          float            volume;
130    
131  } lscp_midi_instrument_info_t;  } lscp_midi_instrument_info_t;
132    
# Line 140  typedef struct _lscp_client_t lscp_clien Line 140  typedef struct _lscp_client_t lscp_clien
140  /** Client event callback procedure prototype. */  /** Client event callback procedure prototype. */
141  typedef lscp_status_t (*lscp_client_proc_t)  typedef lscp_status_t (*lscp_client_proc_t)
142  (  (
143      struct _lscp_client_t *pClient,          struct _lscp_client_t *pClient,
144      lscp_event_t event,          lscp_event_t event,
145      const char *pchData,          const char *pchData,
146      int cchData,          int cchData,
147      void *pvData          void *pvData
148  );  );
149    
150  //-------------------------------------------------------------------------  //-------------------------------------------------------------------------

Legend:
Removed from v.948  
changed lines
  Added in v.952

  ViewVC Help
Powered by ViewVC