23 #ifndef __LSCP_CLIENT_H
24 #define __LSCP_CLIENT_H
30 #if defined(__cplusplus)
37 #define LSCP_MIDI_CHANNEL_ALL 16
167 struct _lscp_client_t *pClient,
306 #if defined(__cplusplus)
lscp_status_t lscp_client_subscribe(lscp_client_t *pClient, lscp_event_t events)
Definition: client.c:767
lscp_status_t lscp_set_channel_midi_device(lscp_client_t *pClient, int iSamplerChannel, int iMidiDevice)
Definition: client.c:1708
struct _lscp_fxsend_info_t lscp_fxsend_info_t
lscp_status_t lscp_client_query(lscp_client_t *pClient, const char *pszQuery)
Definition: client.c:682
enum _lscp_usage_t lscp_usage_t
const char * lscp_get_midi_instrument_map_name(lscp_client_t *pClient, int iMidiMap)
Definition: client.c:2696
int * lscp_list_midi_instrument_maps(lscp_client_t *pClient)
Definition: client.c:2662
lscp_status_t lscp_client_join(lscp_client_t *pClient)
Definition: client.c:518
_lscp_midi_map_mode_t
Definition: client.h:150
@ LSCP_MIDI_MAP_ALL
Definition: client.h:153
@ LSCP_MIDI_MAP_NONE
Definition: client.h:151
@ LSCP_MIDI_MAP_DEFAULT
Definition: client.h:152
lscp_status_t lscp_load_instrument_non_modal(lscp_client_t *pClient, const char *pszFileName, int iInstrIndex, int iSamplerChannel)
Definition: client.c:985
lscp_status_t lscp_remove_channel(lscp_client_t *pClient, int iSamplerChannel)
Definition: client.c:1123
struct _lscp_engine_info_t lscp_engine_info_t
lscp_fxsend_info_t * lscp_get_fxsend_info(lscp_client_t *pClient, int iSamplerChannel, int iFxSend)
Definition: client.c:2387
float lscp_get_volume(lscp_client_t *pClient)
Definition: client.c:2053
lscp_engine_info_t * lscp_get_engine_info(lscp_client_t *pClient, const char *pszEngineName)
Definition: client.c:1208
struct _lscp_midi_instrument_info_t lscp_midi_instrument_info_t
_lscp_usage_t
Definition: client.h:95
@ LSCP_USAGE_PERCENTAGE
Definition: client.h:97
@ LSCP_USAGE_BYTES
Definition: client.h:96
int lscp_get_channel_stream_usage(lscp_client_t *pClient, int iSamplerChannel)
Definition: client.c:1476
lscp_status_t lscp_load_instrument(lscp_client_t *pClient, const char *pszFileName, int iInstrIndex, int iSamplerChannel)
Definition: client.c:960
lscp_status_t lscp_set_channel_mute(lscp_client_t *pClient, int iSamplerChannel, int iMute)
Definition: client.c:1852
const char * lscp_client_get_result(lscp_client_t *pClient)
Definition: client.c:710
lscp_server_info_t * lscp_get_server_info(lscp_client_t *pClient)
Definition: client.c:1937
lscp_event_t lscp_client_get_events(lscp_client_t *pClient)
Definition: client.c:937
const char ** lscp_list_available_engines(lscp_client_t *pClient)
Definition: client.c:1173
int lscp_add_midi_instrument_map(lscp_client_t *pClient, const char *pszMapName)
Definition: client.c:2574
enum _lscp_midi_map_mode_t lscp_midi_map_mode_t
lscp_channel_info_t * lscp_get_channel_info(lscp_client_t *pClient, int iSamplerChannel)
Definition: client.c:1267
int lscp_get_voices(lscp_client_t *pClient)
Definition: client.c:2119
lscp_buffer_fill_t * lscp_get_channel_buffer_fill(lscp_client_t *pClient, lscp_usage_t iUsageType, int iSamplerChannel)
Definition: client.c:1537
lscp_status_t lscp_reset_sampler(lscp_client_t *pClient)
Definition: client.c:1921
lscp_status_t lscp_set_channel_midi_type(lscp_client_t *pClient, int iSamplerChannel, const char *pszMidiType)
Definition: client.c:1684
int lscp_get_channels(lscp_client_t *pClient)
Definition: client.c:1031
int lscp_get_total_voice_count_max(lscp_client_t *pClient)
Definition: client.c:2024
const char * lscp_client_package(void)
Definition: client.c:278
lscp_status_t lscp_set_streams(lscp_client_t *pClient, int iMaxStreams)
Definition: client.c:2221
const char * lscp_client_build(void)
Definition: client.c:284
lscp_status_t lscp_set_fxsend_audio_channel(lscp_client_t *pClient, int iSamplerChannel, int iFxSend, int iAudioSrc, int iAudioDst)
Definition: client.c:2494
int lscp_get_midi_instrument_maps(lscp_client_t *pClient)
Definition: client.c:2633
lscp_status_t lscp_client_set_timeout(lscp_client_t *pClient, int iTimeout)
Definition: client.c:624
lscp_status_t lscp_set_channel_midi_map(lscp_client_t *pClient, int iSamplerChannel, int iMidiMap)
Definition: client.c:1787
lscp_status_t lscp_set_fxsend_midi_controller(lscp_client_t *pClient, int iSamplerChannel, int iFxSend, int iMidiController)
Definition: client.c:2520
lscp_status_t lscp_edit_channel_instrument(lscp_client_t *pClient, int iSamplerChannel)
Definition: client.c:3093
struct _lscp_client_t lscp_client_t
Definition: client.h:162
lscp_midi_instrument_info_t * lscp_get_midi_instrument_info(lscp_client_t *pClient, lscp_midi_instrument_t *pMidiInstr)
Definition: client.c:2962
int lscp_get_total_voice_count(lscp_client_t *pClient)
Definition: client.c:1995
int lscp_get_streams(lscp_client_t *pClient)
Definition: client.c:2183
int lscp_add_channel(lscp_client_t *pClient)
Definition: client.c:1094
int lscp_client_get_errno(lscp_client_t *pClient)
Definition: client.c:727
lscp_midi_instrument_t * lscp_list_midi_instruments(lscp_client_t *pClient, int iMidiMap)
Definition: client.c:2916
bool lscp_client_connection_lost(lscp_client_t *pClient)
Definition: client.c:658
lscp_status_t lscp_set_midi_instrument_map_name(lscp_client_t *pClient, int iMidiMap, const char *pszMapName)
Definition: client.c:2749
int lscp_get_midi_instruments(lscp_client_t *pClient, int iMidiMap)
Definition: client.c:2876
int lscp_client_get_timeout(lscp_client_t *pClient)
Definition: client.c:643
struct _lscp_buffer_fill_t lscp_buffer_fill_t
lscp_status_t lscp_clear_midi_instruments(lscp_client_t *pClient, int iMidiMap)
Definition: client.c:3066
int lscp_get_channel_voice_count(lscp_client_t *pClient, int iSamplerChannel)
Definition: client.c:1410
lscp_status_t lscp_set_channel_volume(lscp_client_t *pClient, int iSamplerChannel, float fVolume)
Definition: client.c:1822
enum _lscp_load_mode_t lscp_load_mode_t
lscp_status_t lscp_set_volume(lscp_client_t *pClient, float fVolume)
Definition: client.c:2089
lscp_status_t lscp_map_midi_instrument(lscp_client_t *pClient, lscp_midi_instrument_t *pMidiInstr, const char *pszEngineName, const char *pszFileName, int iInstrIndex, float fVolume, lscp_load_mode_t load_mode, const char *pszName)
Definition: client.c:2788
int lscp_get_channel_stream_count(lscp_client_t *pClient, int iSamplerChannel)
Definition: client.c:1443
lscp_status_t lscp_set_channel_midi_channel(lscp_client_t *pClient, int iSamplerChannel, int iMidiChannel)
Definition: client.c:1757
lscp_status_t lscp_set_channel_audio_device(lscp_client_t *pClient, int iSamplerChannel, int iAudioDevice)
Definition: client.c:1635
lscp_status_t lscp_set_channel_solo(lscp_client_t *pClient, int iSamplerChannel, int iSolo)
Definition: client.c:1878
struct _lscp_channel_info_t lscp_channel_info_t
lscp_client_t * lscp_client_create(const char *pszHost, int iPort, lscp_client_proc_t pfnCallback, void *pvData)
Definition: client.c:304
lscp_status_t lscp_set_channel_audio_type(lscp_client_t *pClient, int iSamplerChannel, const char *pszAudioType)
Definition: client.c:1611
lscp_status_t lscp_load_engine(lscp_client_t *pClient, const char *pszEngineName, int iSamplerChannel)
Definition: client.c:1009
lscp_status_t lscp_destroy_fxsend(lscp_client_t *pClient, int iSamplerChannel, int iFxSend)
Definition: client.c:2288
_lscp_load_mode_t
Definition: client.h:125
@ LSCP_LOAD_ON_DEMAND_HOLD
Definition: client.h:128
@ LSCP_LOAD_DEFAULT
Definition: client.h:126
@ LSCP_LOAD_ON_DEMAND
Definition: client.h:127
@ LSCP_LOAD_PERSISTENT
Definition: client.h:129
lscp_status_t lscp_set_channel_midi_port(lscp_client_t *pClient, int iSamplerChannel, int iMidiPort)
Definition: client.c:1732
int * lscp_list_channels(lscp_client_t *pClient)
Definition: client.c:1060
const char * lscp_client_version(void)
Definition: client.c:281
lscp_status_t lscp_reset_channel(lscp_client_t *pClient, int iSamplerChannel)
Definition: client.c:1901
lscp_status_t lscp_client_unsubscribe(lscp_client_t *pClient, lscp_event_t events)
Definition: client.c:863
lscp_status_t lscp_set_fxsend_name(lscp_client_t *pClient, int iSamplerChannel, int iFxSend, const char *pszFxName)
Definition: client.c:2467
lscp_status_t lscp_set_channel_audio_channel(lscp_client_t *pClient, int iSamplerChannel, int iAudioOut, int iAudioIn)
Definition: client.c:1660
struct _lscp_midi_instrument_t lscp_midi_instrument_t
int lscp_get_fxsends(lscp_client_t *pClient, int iSamplerChannel)
Definition: client.c:2313
int lscp_get_available_engines(lscp_client_t *pClient)
Definition: client.c:1144
lscp_status_t lscp_unmap_midi_instrument(lscp_client_t *pClient, lscp_midi_instrument_t *pMidiInstr)
Definition: client.c:2847
lscp_status_t lscp_set_voices(lscp_client_t *pClient, int iMaxVoices)
Definition: client.c:2157
lscp_status_t lscp_client_destroy(lscp_client_t *pClient)
Definition: client.c:541
struct _lscp_server_info_t lscp_server_info_t
lscp_status_t lscp_set_fxsend_level(lscp_client_t *pClient, int iSamplerChannel, int iFxSend, float fLevel)
Definition: client.c:2546
int * lscp_list_fxsends(lscp_client_t *pClient, int iSamplerChannel)
Definition: client.c:2348
lscp_status_t lscp_remove_midi_instrument_map(lscp_client_t *pClient, int iMidiMap)
Definition: client.c:2611
int lscp_create_fxsend(lscp_client_t *pClient, int iSamplerChannel, int iMidiController, const char *pszFxName)
Definition: client.c:2246
lscp_status_t(* lscp_client_proc_t)(struct _lscp_client_t *pClient, lscp_event_t event, const char *pchData, int cchData, void *pvData)
Definition: client.h:166
enum _lscp_event_t lscp_event_t
unsigned int stream_id
Definition: client.h:87
unsigned long stream_usage
Definition: client.h:88
int midi_map
Definition: client.h:76
char * instrument_file
Definition: client.h:69
int midi_device
Definition: client.h:73
int solo
Definition: client.h:79
int * audio_routing
Definition: client.h:68
int instrument_nr
Definition: client.h:70
int midi_channel
Definition: client.h:75
float volume
Definition: client.h:77
int midi_port
Definition: client.h:74
int audio_device
Definition: client.h:66
int instrument_status
Definition: client.h:72
char * engine_name
Definition: client.h:65
int audio_channels
Definition: client.h:67
int mute
Definition: client.h:78
char * instrument_name
Definition: client.h:71
char * description
Definition: client.h:56
char * version
Definition: client.h:57
float level
Definition: client.h:108
int midi_controller
Definition: client.h:106
int * audio_routing
Definition: client.h:107
char * name
Definition: client.h:105
char * name
Definition: client.h:137
char * instrument_name
Definition: client.h:141
char * instrument_file
Definition: client.h:139
float volume
Definition: client.h:143
char * engine_name
Definition: client.h:138
int instrument_nr
Definition: client.h:140
lscp_load_mode_t load_mode
Definition: client.h:142
int map
Definition: client.h:116
int bank
Definition: client.h:117
int prog
Definition: client.h:118
char * description
Definition: client.h:46
char * version
Definition: client.h:47
char * protocol_version
Definition: client.h:48
enum _lscp_status_t lscp_status_t