78 |
} lscp_usage_t; |
} lscp_usage_t; |
79 |
|
|
80 |
|
|
81 |
|
/** Subscribable event notification bit-wise flags. */ |
82 |
|
typedef enum _lscp_event_t |
83 |
|
{ |
84 |
|
LSCP_EVENT_NONE = 0x0000, |
85 |
|
LSCP_EVENT_CHANNELS = 0x0001, |
86 |
|
LSCP_EVENT_VOICE_COUNT = 0x0002, |
87 |
|
LSCP_EVENT_STREAM_COUNT = 0x0004, |
88 |
|
LSCP_EVENT_BUFFER_FILL = 0x0008, |
89 |
|
LSCP_EVENT_CHANNEL_INFO = 0x0010, |
90 |
|
LSCP_EVENT_MISCELLANEOUS = 0x1000 |
91 |
|
|
92 |
|
} lscp_event_t; |
93 |
|
|
94 |
|
|
95 |
//------------------------------------------------------------------------- |
//------------------------------------------------------------------------- |
96 |
// Client socket main structure. |
// Client socket main structure. |
97 |
|
|
98 |
/** Client opaque descriptor struct. */ |
/** Client opaque descriptor struct. */ |
99 |
typedef struct _lscp_client_t lscp_client_t; |
typedef struct _lscp_client_t lscp_client_t; |
100 |
|
|
101 |
/** Client callback procedure prototype. */ |
/** Client event callback procedure prototype. */ |
102 |
typedef lscp_status_t (*lscp_client_proc_t) |
typedef lscp_status_t (*lscp_client_proc_t) |
103 |
( |
( |
104 |
struct _lscp_client_t *pClient, |
struct _lscp_client_t *pClient, |
105 |
|
lscp_event_t event, |
106 |
const char *pchBuffer, |
const char *pchBuffer, |
107 |
int cchBuffer, |
int cchBuffer, |
108 |
void *pvData |
void *pvData |
135 |
//------------------------------------------------------------------------- |
//------------------------------------------------------------------------- |
136 |
// Client registration protocol functions. |
// Client registration protocol functions. |
137 |
|
|
138 |
lscp_status_t lscp_client_subscribe (lscp_client_t *pClient); |
lscp_status_t lscp_client_subscribe (lscp_client_t *pClient, lscp_event_t events); |
139 |
lscp_status_t lscp_client_unsubscribe (lscp_client_t *pClient); |
lscp_status_t lscp_client_unsubscribe (lscp_client_t *pClient, lscp_event_t events); |
140 |
|
|
141 |
|
lscp_event_t lscp_client_events (lscp_client_t *pClient); |
142 |
|
|
143 |
//------------------------------------------------------------------------- |
//------------------------------------------------------------------------- |
144 |
// Client command protocol functions. |
// Client command protocol functions. |
145 |
|
|
146 |
lscp_status_t lscp_load_instrument (lscp_client_t *pClient, const char *pszFileName, int iInstrIndex, int iSamplerChannel); |
lscp_status_t lscp_load_instrument (lscp_client_t *pClient, const char *pszFileName, int iInstrIndex, int iSamplerChannel); |
147 |
|
lscp_status_t lscp_load_instrument_non_modal (lscp_client_t *pClient, const char *pszFileName, int iInstrIndex, int iSamplerChannel); |
148 |
lscp_status_t lscp_load_engine (lscp_client_t *pClient, const char *pszEngineName, int iSamplerChannel); |
lscp_status_t lscp_load_engine (lscp_client_t *pClient, const char *pszEngineName, int iSamplerChannel); |
149 |
int lscp_get_channels (lscp_client_t *pClient); |
int lscp_get_channels (lscp_client_t *pClient); |
150 |
int * lscp_list_channels (lscp_client_t *pClient); |
int * lscp_list_channels (lscp_client_t *pClient); |
161 |
lscp_buffer_fill_t * lscp_get_channel_buffer_fill (lscp_client_t *pClient, lscp_usage_t iUsageType, int iSamplerChannel); |
lscp_buffer_fill_t * lscp_get_channel_buffer_fill (lscp_client_t *pClient, lscp_usage_t iUsageType, int iSamplerChannel); |
162 |
|
|
163 |
lscp_status_t lscp_set_channel_audio_type (lscp_client_t *pClient, int iSamplerChannel, const char *pszAudioType); |
lscp_status_t lscp_set_channel_audio_type (lscp_client_t *pClient, int iSamplerChannel, const char *pszAudioType); |
164 |
|
lscp_status_t lscp_set_channel_audio_device (lscp_client_t *pClient, int iSamplerChannel, int iAudioDevice); |
165 |
lscp_status_t lscp_set_channel_audio_channel (lscp_client_t *pClient, int iSamplerChannel, int iAudioOut, int iAudioIn); |
lscp_status_t lscp_set_channel_audio_channel (lscp_client_t *pClient, int iSamplerChannel, int iAudioOut, int iAudioIn); |
166 |
|
|
167 |
lscp_status_t lscp_set_channel_midi_type (lscp_client_t *pClient, int iSamplerChannel, const char *pszMidiType); |
lscp_status_t lscp_set_channel_midi_type (lscp_client_t *pClient, int iSamplerChannel, const char *pszMidiType); |
168 |
|
lscp_status_t lscp_set_channel_midi_device (lscp_client_t *pClient, int iSamplerChannel, int iMidiDevice); |
169 |
lscp_status_t lscp_set_channel_midi_port (lscp_client_t *pClient, int iSamplerChannel, int iMidiPort); |
lscp_status_t lscp_set_channel_midi_port (lscp_client_t *pClient, int iSamplerChannel, int iMidiPort); |
170 |
lscp_status_t lscp_set_channel_midi_channel (lscp_client_t *pClient, int iSamplerChannel, int iMidiChannel); |
lscp_status_t lscp_set_channel_midi_channel (lscp_client_t *pClient, int iSamplerChannel, int iMidiChannel); |
171 |
lscp_status_t lscp_set_channel_volume (lscp_client_t *pClient, int iSamplerChannel, float fVolume); |
lscp_status_t lscp_set_channel_volume (lscp_client_t *pClient, int iSamplerChannel, float fVolume); |