2 |
// |
// |
3 |
/**************************************************************************** |
/**************************************************************************** |
4 |
liblscp - LinuxSampler Control Protocol API |
liblscp - LinuxSampler Control Protocol API |
5 |
Copyright (C) 2004, rncbc aka Rui Nuno Capela. All rights reserved. |
Copyright (C) 2004-2005, 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 |
511 |
if (pParam == NULL) |
if (pParam == NULL) |
512 |
return LSCP_FAILED; |
return LSCP_FAILED; |
513 |
|
|
514 |
sprintf(szQuery, "SET AUDIO_OUTPUT_DEVICE_PARAMETER %d", iAudioDevice); |
sprintf(szQuery, "SET AUDIO_OUTPUT_DEVICE_PARAMETER %d %s='%s'", iAudioDevice, pParam->key, pParam->value); |
|
lscp_param_concat(szQuery, sizeof(szQuery), pParam); |
|
515 |
return lscp_client_query(pClient, szQuery); |
return lscp_client_query(pClient, szQuery); |
516 |
} |
} |
517 |
|
|
597 |
if (pParam == NULL) |
if (pParam == NULL) |
598 |
return LSCP_FAILED; |
return LSCP_FAILED; |
599 |
|
|
600 |
sprintf(szQuery, "SET AUDIO_OUTPUT_CHANNEL_PARAMETER %d %d", iAudioDevice, iAudioChannel); |
sprintf(szQuery, "SET AUDIO_OUTPUT_CHANNEL_PARAMETER %d %d %s='%s'", iAudioDevice, iAudioChannel, pParam->key, pParam->value); |
|
lscp_param_concat(szQuery, sizeof(szQuery), pParam); |
|
601 |
return lscp_client_query(pClient, szQuery); |
return lscp_client_query(pClient, szQuery); |
602 |
} |
} |
603 |
|
|
856 |
if (pParam == NULL) |
if (pParam == NULL) |
857 |
return LSCP_FAILED; |
return LSCP_FAILED; |
858 |
|
|
859 |
sprintf(szQuery, "SET MIDI_INPUT_DEVICE_PARAMETER %d", iMidiDevice); |
sprintf(szQuery, "SET MIDI_INPUT_DEVICE_PARAMETER %d %s='%s'", iMidiDevice, pParam->key, pParam->value); |
|
lscp_param_concat(szQuery, sizeof(szQuery), pParam); |
|
860 |
return lscp_client_query(pClient, szQuery); |
return lscp_client_query(pClient, szQuery); |
861 |
} |
} |
862 |
|
|
942 |
if (pParam == NULL) |
if (pParam == NULL) |
943 |
return LSCP_FAILED; |
return LSCP_FAILED; |
944 |
|
|
945 |
sprintf(szQuery, "SET MIDI_INPUT_PORT_PARAMETER %d %d", iMidiDevice, iMidiPort); |
sprintf(szQuery, "SET MIDI_INPUT_PORT_PARAMETER %d %d %s='%s'", iMidiDevice, iMidiPort, pParam->key, pParam->value); |
|
lscp_param_concat(szQuery, sizeof(szQuery), pParam); |
|
946 |
return lscp_client_query(pClient, szQuery); |
return lscp_client_query(pClient, szQuery); |
947 |
} |
} |
948 |
|
|