liblscp
1.0.0
|
#include "lscp/client.h"
Go to the source code of this file.
Data Structures | |
struct | _lscp_param_t |
struct | _lscp_param_info_t |
struct | _lscp_driver_info_t |
struct | _lscp_device_info_t |
struct | _lscp_device_port_info_t |
Typedefs | |
typedef enum _lscp_type_t | lscp_type_t |
typedef struct _lscp_param_t | lscp_param_t |
typedef struct _lscp_param_info_t | lscp_param_info_t |
typedef struct _lscp_driver_info_t | lscp_driver_info_t |
typedef struct _lscp_device_info_t | lscp_device_info_t |
typedef struct _lscp_device_port_info_t | lscp_device_port_info_t |
Enumerations | |
enum | _lscp_type_t { LSCP_TYPE_NONE = 0 , LSCP_TYPE_BOOL , LSCP_TYPE_INT , LSCP_TYPE_FLOAT , LSCP_TYPE_STRING } |
typedef struct _lscp_device_info_t lscp_device_info_t |
Common device info cache struct.
typedef struct _lscp_device_port_info_t lscp_device_port_info_t |
Common device channel/port info cache struct.
typedef struct _lscp_driver_info_t lscp_driver_info_t |
Common driver type info cache struct.
typedef struct _lscp_param_info_t lscp_param_info_t |
Common parameter info cache struct.
typedef struct _lscp_param_t lscp_param_t |
Common and simple key/value pair parameter tuple.
typedef enum _lscp_type_t lscp_type_t |
Parameter value type.
enum _lscp_type_t |
int lscp_create_audio_device | ( | lscp_client_t * | pClient, |
const char * | pszAudioDriver, | ||
lscp_param_t * | pParams | ||
) |
Creating an audio output device. CREATE AUDIO_OUTPUT_DEVICE <audio-output-driver> [<params>]
pClient | Pointer to client instance structure. |
pszAudioDriver | Audio driver type string (e.g. "ALSA"). |
pParams | Pointer to specific parameter list. |
References LSCP_BUFSIZ, lscp_client_get_result(), lscp_mutex_lock, lscp_mutex_unlock, and LSCP_OK.
int lscp_create_midi_device | ( | lscp_client_t * | pClient, |
const char * | pszMidiDriver, | ||
lscp_param_t * | pParams | ||
) |
Creating a MIDI input device. CREATE MIDI_INPUT_DEVICE <midi-input-driver> [<params>]
pClient | Pointer to client instance structure. |
pszMidiDriver | MIDI driver type string (e.g. "ALSA"). |
pParams | Pointer to specific parameter list. |
References LSCP_BUFSIZ, lscp_client_get_result(), lscp_mutex_lock, lscp_mutex_unlock, and LSCP_OK.
lscp_status_t lscp_destroy_audio_device | ( | lscp_client_t * | pClient, |
int | iAudioDevice | ||
) |
Destroying an audio output device. DESTROY AUDIO_OUTPUT_DEVICE <audio-device-id>
pClient | Pointer to client instance structure. |
iAudioDevice | Audio device number identifier. |
References LSCP_BUFSIZ, lscp_client_query(), and LSCP_FAILED.
lscp_status_t lscp_destroy_midi_device | ( | lscp_client_t * | pClient, |
int | iMidiDevice | ||
) |
Destroying a MIDI input device. DESTROY MIDI_INPUT_DEVICE <midi-device-id>
pClient | Pointer to client instance structure. |
iMidiDevice | MIDI device number identifier. |
References LSCP_BUFSIZ, lscp_client_query(), and LSCP_FAILED.
lscp_device_port_info_t* lscp_get_audio_channel_info | ( | lscp_client_t * | pClient, |
int | iAudioDevice, | ||
int | iAudioChannel | ||
) |
Getting informations about an audio channel. GET AUDIO_OUTPUT_CHANNEL INFO <audio-device-id> <audio-channel>
pClient | Pointer to client instance structure. |
iAudioDevice | Audio device number identifier. |
iAudioChannel | Audio channel number. |
References LSCP_BUFSIZ.
lscp_param_info_t* lscp_get_audio_channel_param_info | ( | lscp_client_t * | pClient, |
int | iAudioDevice, | ||
int | iAudioChannel, | ||
const char * | pszParam | ||
) |
Getting informations about specific audio channel parameter. GET AUDIO_OUTPUT_CHANNEL_PARAMETER INFO <audio-device-id> <audio-channel>
pClient | Pointer to client instance structure. |
iAudioDevice | Audio device number identifier. |
iAudioChannel | Audio channel number. |
pszParam | Audio channel parameter name. |
References LSCP_BUFSIZ.
lscp_device_info_t* lscp_get_audio_device_info | ( | lscp_client_t * | pClient, |
int | iAudioDevice | ||
) |
Getting current settings of an audio output device. GET AUDIO_OUTPUT_DEVICE INFO <audio-device-id>
pClient | Pointer to client instance structure. |
iAudioDevice | Audio device number identifier. |
References LSCP_BUFSIZ.
int lscp_get_audio_devices | ( | lscp_client_t * | pClient | ) |
Getting all created audio output device count. GET AUDIO_OUTPUT_DEVICES
pClient | Pointer to client instance structure. |
References lscp_client_get_result(), lscp_mutex_lock, lscp_mutex_unlock, and LSCP_OK.
lscp_driver_info_t* lscp_get_audio_driver_info | ( | lscp_client_t * | pClient, |
const char * | pszAudioDriver | ||
) |
Getting informations about a specific audio output driver. GET AUDIO_OUTPUT_DRIVER INFO <audio-output-type>
pClient | Pointer to client instance structure. |
pszAudioDriver | Audio driver type string (e.g. "ALSA"). |
References LSCP_BUFSIZ.
lscp_param_info_t* lscp_get_audio_driver_param_info | ( | lscp_client_t * | pClient, |
const char * | pszAudioDriver, | ||
const char * | pszParam, | ||
lscp_param_t * | pDepList | ||
) |
Getting informations about specific audio output driver parameter. GET AUDIO_OUTPUT_DRIVER_PARAMETER INFO <audio-output-driver> [<dep-list>]
pClient | Pointer to client instance structure. |
pszAudioDriver | Audio driver type string (e.g. "ALSA"). |
pszParam | Audio driver parameter name. |
pDepList | Pointer to specific dependencies parameter list. |
References LSCP_BUFSIZ.
int lscp_get_available_audio_drivers | ( | lscp_client_t * | pClient | ) |
Getting all available audio output driver count. GET AVAILABLE_AUDIO_OUTPUT_DRIVERS
pClient | Pointer to client instance structure. |
References lscp_client_get_result(), lscp_mutex_lock, lscp_mutex_unlock, and LSCP_OK.
int lscp_get_available_midi_drivers | ( | lscp_client_t * | pClient | ) |
Getting all available MIDI input driver count. GET AVAILABLE_MIDI_INPUT_DRIVERS
pClient | Pointer to client instance structure. |
References lscp_client_get_result(), lscp_mutex_lock, lscp_mutex_unlock, and LSCP_OK.
lscp_device_info_t* lscp_get_midi_device_info | ( | lscp_client_t * | pClient, |
int | iMidiDevice | ||
) |
Getting current settings of a MIDI input device. GET MIDI_INPUT_DEVICE INFO <midi-device-id>
pClient | Pointer to client instance structure. |
iMidiDevice | MIDI device number identifier. |
References LSCP_BUFSIZ.
int lscp_get_midi_devices | ( | lscp_client_t * | pClient | ) |
Getting all created MIDI intput device count. GET MIDI_INPUT_DEVICES
pClient | Pointer to client instance structure. |
References lscp_client_get_result(), lscp_mutex_lock, lscp_mutex_unlock, and LSCP_OK.
lscp_driver_info_t* lscp_get_midi_driver_info | ( | lscp_client_t * | pClient, |
const char * | pszMidiDriver | ||
) |
Getting informations about a specific MIDI input driver. GET MIDI_INPUT_DRIVER INFO <midi-input-type>
pClient | Pointer to client instance structure. |
pszMidiDriver | MIDI driver type string (e.g. "ALSA"). |
References LSCP_BUFSIZ.
lscp_param_info_t* lscp_get_midi_driver_param_info | ( | lscp_client_t * | pClient, |
const char * | pszMidiDriver, | ||
const char * | pszParam, | ||
lscp_param_t * | pDepList | ||
) |
Getting informations about specific MIDI input driver parameter. GET MIDI_INPUT_DRIVER_PARAMETER INFO <midi-input-driver> [<dep-list>]
pClient | Pointer to client instance structure. |
pszMidiDriver | MIDI driver type string (e.g. "ALSA"). |
pszParam | MIDI driver parameter name. |
pDepList | Pointer to specific dependencies parameter list. |
References LSCP_BUFSIZ.
lscp_device_port_info_t* lscp_get_midi_port_info | ( | lscp_client_t * | pClient, |
int | iMidiDevice, | ||
int | iMidiPort | ||
) |
Getting informations about a MIDI port. GET MIDI_INPUT_PORT INFO <midi-device-id> <midi-port>
pClient | Pointer to client instance structure. |
iMidiDevice | MIDI device number identifier. |
iMidiPort | MIDI port number. |
References LSCP_BUFSIZ.
lscp_param_info_t* lscp_get_midi_port_param_info | ( | lscp_client_t * | pClient, |
int | iMidiDevice, | ||
int | iMidiPort, | ||
const char * | pszParam | ||
) |
Getting informations about specific MIDI port parameter. GET MIDI_INPUT_PORT_PARAMETER INFO <midi-device-id> <midi-port>
pClient | Pointer to client instance structure. |
iMidiDevice | MIDI device number identifier. |
iMidiPort | MIDI port number. |
pszParam | MIDI port parameter name. |
References LSCP_BUFSIZ.
const char* lscp_get_param_value | ( | lscp_param_t * | pParams, |
const char * | pszParam | ||
) |
References _lscp_param_t::key, and _lscp_param_t::value.
int* lscp_list_audio_devices | ( | lscp_client_t * | pClient | ) |
Getting all created audio output device list. LIST AUDIO_OUTPUT_DEVICES
pClient | Pointer to client instance structure. |
References lscp_client_get_result(), lscp_mutex_lock, lscp_mutex_unlock, and LSCP_OK.
const char** lscp_list_available_audio_drivers | ( | lscp_client_t * | pClient | ) |
Getting all available audio output drivers. LIST AVAILABLE_AUDIO_OUTPUT_DRIVERS
pClient | Pointer to client instance structure. |
References lscp_client_get_result(), lscp_mutex_lock, lscp_mutex_unlock, and LSCP_OK.
const char** lscp_list_available_midi_drivers | ( | lscp_client_t * | pClient | ) |
Getting all available MIDI input drivers. LIST AVAILABLE_MIDI_INPUT_DRIVERS
pClient | Pointer to client instance structure. |
References lscp_client_get_result(), lscp_mutex_lock, lscp_mutex_unlock, and LSCP_OK.
int* lscp_list_midi_devices | ( | lscp_client_t * | pClient | ) |
Getting all created MIDI intput device list. LIST MIDI_INPUT_DEVICES
pClient | Pointer to client instance structure. |
References lscp_client_get_result(), lscp_mutex_lock, lscp_mutex_unlock, and LSCP_OK.
lscp_status_t lscp_set_audio_channel_param | ( | lscp_client_t * | pClient, |
int | iAudioDevice, | ||
int | iAudioChannel, | ||
lscp_param_t * | pParam | ||
) |
Changing settings of audio output channels. SET AUDIO_OUTPUT_CHANNEL_PARAMETER <audio-device-id> <audio-channel>
pClient | Pointer to client instance structure. |
iAudioDevice | Audio device number identifier. |
iAudioChannel | Audio channel number. |
pParam | Pointer to a key-valued audio channel parameter. |
References _lscp_param_t::key, LSCP_BUFSIZ, lscp_client_query(), LSCP_FAILED, and _lscp_param_t::value.
lscp_status_t lscp_set_audio_device_param | ( | lscp_client_t * | pClient, |
int | iAudioDevice, | ||
lscp_param_t * | pParam | ||
) |
Changing settings of audio output devices. SET AUDIO_OUTPUT_DEVICE_PARAMETER <audio-device-id> =
pClient | Pointer to client instance structure. |
iAudioDevice | Audio device number identifier. |
pParam | Pointer to a key-valued audio device parameter. |
References _lscp_param_t::key, LSCP_BUFSIZ, lscp_client_query(), LSCP_FAILED, and _lscp_param_t::value.
lscp_status_t lscp_set_midi_device_param | ( | lscp_client_t * | pClient, |
int | iMidiDevice, | ||
lscp_param_t * | pParam | ||
) |
Changing settings of MIDI input devices. SET MIDI_INPUT_DEVICE_PARAMETER <midi-device-id> =
pClient | Pointer to client instance structure. |
iMidiDevice | MIDI device number identifier. |
pParam | Pointer to a key-valued MIDI device parameter. |
References _lscp_param_t::key, LSCP_BUFSIZ, lscp_client_query(), LSCP_FAILED, and _lscp_param_t::value.
lscp_status_t lscp_set_midi_port_param | ( | lscp_client_t * | pClient, |
int | iMidiDevice, | ||
int | iMidiPort, | ||
lscp_param_t * | pParam | ||
) |
Changing settings of MIDI input ports. SET MIDI_INPUT_PORT_PARAMETER <midi-device-id> <midi-port>
pClient | Pointer to client instance structure. |
iMidiDevice | MIDI device number identifier. |
iMidiPort | MIDI port number. |
pParam | Pointer to a key-valued MIDI port parameter. |
References _lscp_param_t::key, LSCP_BUFSIZ, lscp_client_query(), LSCP_FAILED, and _lscp_param_t::value.