2 |
// |
// |
3 |
/**************************************************************************** |
/**************************************************************************** |
4 |
liblscp - LinuxSampler Control Protocol API |
liblscp - LinuxSampler Control Protocol API |
5 |
Copyright (C) 2004-2005, rncbc aka Rui Nuno Capela. All rights reserved. |
Copyright (C) 2004-2006, 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 |
14 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
15 |
Lesser General Public License for more details. |
Lesser General Public License for more details. |
16 |
|
|
17 |
You should 14have received a copy of the GNU Lesser General Public |
You should have received a copy of the GNU General Public License along |
18 |
License along with this library; if not, write to the Free Software |
with this program; if not, write to the Free Software Foundation, Inc., |
19 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
20 |
|
|
21 |
*****************************************************************************/ |
*****************************************************************************/ |
22 |
|
|
1464 |
if (iSamplerChannel < 0 || iMute < 0 || iMute > 1) |
if (iSamplerChannel < 0 || iMute < 0 || iMute > 1) |
1465 |
return LSCP_FAILED; |
return LSCP_FAILED; |
1466 |
|
|
1467 |
sprintf(szQuery, "SET CHANNEL MUTE %d %g\r\n", iSamplerChannel, iMute); |
sprintf(szQuery, "SET CHANNEL MUTE %d %d\r\n", iSamplerChannel, iMute); |
1468 |
return lscp_client_query(pClient, szQuery); |
return lscp_client_query(pClient, szQuery); |
1469 |
} |
} |
1470 |
|
|
1488 |
if (iSamplerChannel < 0 || iSolo < 0 || iSolo > 1) |
if (iSamplerChannel < 0 || iSolo < 0 || iSolo > 1) |
1489 |
return LSCP_FAILED; |
return LSCP_FAILED; |
1490 |
|
|
1491 |
sprintf(szQuery, "SET CHANNEL SOLO %d %g\r\n", iSamplerChannel, iSolo); |
sprintf(szQuery, "SET CHANNEL SOLO %d %d\r\n", iSamplerChannel, iSolo); |
1492 |
return lscp_client_query(pClient, szQuery); |
return lscp_client_query(pClient, szQuery); |
1493 |
} |
} |
1494 |
|
|