/[svn]/liblscp/trunk/src/device.c
ViewVC logotype

Diff of /liblscp/trunk/src/device.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 434 by capela, Thu Jul 8 16:31:47 2004 UTC revision 435 by capela, Wed Mar 9 18:39:57 2005 UTC
# Line 2  Line 2 
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
# Line 511  lscp_status_t lscp_set_audio_device_para Line 511  lscp_status_t lscp_set_audio_device_para
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    
# Line 598  lscp_status_t lscp_set_audio_channel_par Line 597  lscp_status_t lscp_set_audio_channel_par
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    
# Line 858  lscp_status_t lscp_set_midi_device_param Line 856  lscp_status_t lscp_set_midi_device_param
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    
# Line 945  lscp_status_t lscp_set_midi_port_param ( Line 942  lscp_status_t lscp_set_midi_port_param (
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    

Legend:
Removed from v.434  
changed lines
  Added in v.435

  ViewVC Help
Powered by ViewVC