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

Log of /liblscp/trunk/src/client.c

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (download) (annotate)
Sticky Revision:

Revision 3664 - (view) (download) (annotate) - [select for diffs]
Modified Sun Dec 22 12:53:26 2019 UTC (4 years, 3 months ago) by schoenebeck
File length: 90631 byte(s)
Diff to previous 3663 , to selected 114
Improved connection error handling:

* Expose actual system error codes via client interface
  instead of just -1 whenever a syscall failed.

* Added new client interface function:
    lscp_client_connection_lost();
  for checking whether client lost connection to server.


Revision 3663 - (view) (download) (annotate) - [select for diffs]
Modified Sun Dec 22 12:41:28 2019 UTC (4 years, 3 months ago) by schoenebeck
File length: 90136 byte(s)
Diff to previous 3519 , to selected 114
- Fixed compile errors on macOS.


Revision 3519 - (view) (download) (annotate) - [select for diffs]
Modified Sun Jun 30 17:01:00 2019 UTC (4 years, 8 months ago) by capela
File length: 90114 byte(s)
Diff to previous 2424 , to selected 114
- Modernized on debian, doxygen and reproducible build fronts.

Revision 2424 - (view) (download) (annotate) - [select for diffs]
Modified Sun Feb 24 19:02:30 2013 UTC (11 years, 1 month ago) by capela
File length: 90135 byte(s)
Diff to previous 2422 , to selected 114
- Use getaddrinfo() instead of deprecated gethostbyname().
  (WIN32 REGRESSION FIX)

Revision 2422 - (view) (download) (annotate) - [select for diffs]
Modified Sun Feb 24 11:22:03 2013 UTC (11 years, 1 month ago) by capela
File length: 90108 byte(s)
Diff to previous 1806 , to selected 114
* Use getaddrinffo() instead of deprecated gethostbyname().

Revision 1806 - (view) (download) (annotate) - [select for diffs]
Modified Thu Dec 11 01:28:42 2008 UTC (15 years, 3 months ago) by schoenebeck
File length: 88006 byte(s)
Diff to previous 1802 , to selected 114
* fixed locale related parser bug (fixes #59)
* bumped version to 0.5.5.10


Revision 1802 - (view) (download) (annotate) - [select for diffs]
Modified Sun Dec 7 13:50:08 2008 UTC (15 years, 3 months ago) by schoenebeck
File length: 86278 byte(s)
Diff to previous 1697 , to selected 114
* added new client interface functions, for managing the global limit of
  maximum voices and disk streams: lscp_get_voices(), lscp_set_voices(),
  lscp_get_streams(), lscp_set_streams()
* bumped version to 0.5.5.9


Revision 1697 - (view) (download) (annotate) - [select for diffs]
Modified Sat Feb 16 19:31:32 2008 UTC (16 years, 1 month ago) by schoenebeck
File length: 82752 byte(s)
Diff to previous 1692 , to selected 114
* added LSCP event "DEVICE_MIDI"


Revision 1692 - (view) (download) (annotate) - [select for diffs]
Modified Fri Feb 15 17:04:34 2008 UTC (16 years, 1 month ago) by schoenebeck
File length: 82351 byte(s)
Diff to previous 1690 , to selected 114
* bugfix: _lscp_client_evt_proc() dropped LSCP events


Revision 1690 - (view) (download) (annotate) - [select for diffs]
Modified Thu Feb 14 19:34:44 2008 UTC (16 years, 1 month ago) by schoenebeck
File length: 82286 byte(s)
Diff to previous 1689 , to selected 114
* bugfix in lscp_client_subscribe(): only the first
  lscp_client_subscribe() call succeeded (per client),
  all subsequent ones failed


Revision 1689 - (view) (download) (annotate) - [select for diffs]
Modified Thu Feb 14 17:05:51 2008 UTC (16 years, 1 month ago) by schoenebeck
File length: 82290 byte(s)
Diff to previous 1666 , to selected 114
* added new LSCP event "CHANNEL_MIDI" (CAUTION: behavior change for
  lscp_client_subscribe() and lscp_client_unsubscribe!)
* bumped version to 0.5.5.4


Revision 1666 - (view) (download) (annotate) - [select for diffs]
Modified Mon Feb 4 14:06:07 2008 UTC (16 years, 1 month ago) by schoenebeck
File length: 80594 byte(s)
Diff to previous 1665 , to selected 114
- fixed bug of previous commit


Revision 1665 - (view) (download) (annotate) - [select for diffs]
Modified Mon Feb 4 13:02:30 2008 UTC (16 years, 1 month ago) by schoenebeck
File length: 80592 byte(s)
Diff to previous 1412 , to selected 114
* added new client interface function, for renaming
  effect send entities: lscp_set_fxsend_name()


Revision 1412 - (view) (download) (annotate) - [select for diffs]
Modified Fri Oct 12 22:43:38 2007 UTC (16 years, 5 months ago) by capela
File length: 79805 byte(s)
Diff to previous 1368 , to selected 114
* Changed client interface function, for editing
  instrument, from:
    lscp_edit_instrument();
  to:
    lscp_edit_channel_instrument();


Revision 1368 - (view) (download) (annotate) - [select for diffs]
Modified Tue Oct 2 07:16:59 2007 UTC (16 years, 5 months ago) by capela
File length: 79781 byte(s)
Diff to previous 1365 , to selected 114
- Prepare for new release 0.5.4.


Revision 1365 - (view) (download) (annotate) - [select for diffs]
Modified Mon Oct 1 17:22:02 2007 UTC (16 years, 6 months ago) by schoenebeck
File length: 79742 byte(s)
Diff to previous 1031 , to selected 114
* Added new client interface function, for editing instruments:
    lscp_edit_instrument();
* Fixed some minor bugs in:
    lscp_set_fxsend_midi_controller();
    lscp_set_fxsend_level();


Revision 1031 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jan 15 11:08:28 2007 UTC (17 years, 2 months ago) by capela
File length: 79207 byte(s)
Diff to previous 1020 , to selected 114
* Added new client interface functions, for sampler
  channel effect sends control:
    lscp_set_fxsend_midi_controller();
    lscp_set_fxsend_level();

* Added new field member to lscp_fxsend_info_t (level).


Revision 1020 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jan 11 15:25:04 2007 UTC (17 years, 2 months ago) by capela
File length: 77362 byte(s)
Diff to previous 1019 , to selected 114
* Audio routing representation changed to integer array.


Revision 1019 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jan 11 12:33:05 2007 UTC (17 years, 2 months ago) by capela
File length: 77366 byte(s)
Diff to previous 994 , to selected 114
* Added new client interface functions, for sampler
  channel effect sends control:
	 lscp_create_fxsend();
	 lscp_destroy_fxsend();
	 lscp_get_fxsends();
	 lscp_list_fxsends();
	 lscp_get_fxsend_info();
	 lscp_set_fxsend_audio_channel();
  and for global volume:
	 lscp_get_volume();
	 lscp_set_volume();


Revision 994 - (view) (download) (annotate) - [select for diffs]
Modified Thu Dec 21 13:33:27 2006 UTC (17 years, 3 months ago) by capela
File length: 69134 byte(s)
Diff to previous 978 , to selected 114
*  Added support for new (un)subscribable events:
     LSCP_EVENT_AUDIO_OUTPUT_DEVICE_COUNT,
     LSCP_EVENT_AUDIO_OUTPUT_DEVICE_INFO,
     LSCP_EVENT_MIDI_INPUT_DEVICE_COUNT,
     LSCP_EVENT_MIDI_INPUT_DEVICE_INFO,
     LSCP_EVENT_MIDI_INSTRUMENT_MAP_COUNT,
     LSCP_EVENT_MIDI_INSTRUMENT_MAP_INFO,
     LSCP_EVENT_MIDI_INSTRUMENT_COUNT,
     LSCP_EVENT_MIDI_INSTRUMENT_INFO.


Revision 978 - (view) (download) (annotate) - [select for diffs]
Modified Sun Dec 17 20:29:45 2006 UTC (17 years, 3 months ago) by capela
File length: 65846 byte(s)
Diff to previous 977 , to selected 114
* Preparation for final 0.5.0 release.


Revision 977 - (view) (download) (annotate) - [select for diffs]
Modified Sun Dec 17 15:08:35 2006 UTC (17 years, 3 months ago) by capela
File length: 65846 byte(s)
Diff to previous 975 , to selected 114
- Last-minute addition to new protocol_version field on server info struct.


Revision 975 - (view) (download) (annotate) - [select for diffs]
Modified Sun Dec 17 00:59:40 2006 UTC (17 years, 3 months ago) by capela
File length: 65643 byte(s)
Diff to previous 963 , to selected 114
* MIDI instrument mapping, second round, according to
  LSCP 1.2 draft document as of December 15, 2006.

* New client interface functions:
     lscp_set_channel_midi_map();
     lscp_add_midi_instrument_map();
     lscp_remove_midi_instrument_map();
     lscp_get_midi_instrument_maps();
     lscp_list_midi_instrument_maps();
     lscp_get_midi_instrument_map_name();
     lscp_set_midi_instrument_map_name();


Revision 963 - (view) (download) (annotate) - [select for diffs]
Modified Sun Dec 3 18:30:04 2006 UTC (17 years, 3 months ago) by capela
File length: 57881 byte(s)
Diff to previous 952 , to selected 114
* MIDI instrument mapping fixed, previously missing
  the regular ON_DEMAND load mode.

* Server error reporting is now effective; all server
  numerical error and warning codes are added to 100,
  thus giving a proper non-zero lscp_client_get_errno()
  return value.


Revision 952 - (view) (download) (annotate) - [select for diffs]
Modified Tue Nov 28 22:46:32 2006 UTC (17 years, 4 months ago) by capela
File length: 57898 byte(s)
Diff to previous 948 , to selected 114
Code cleanup; preparations for 0.4.1 release (hopefully).


Revision 948 - (view) (download) (annotate) - [select for diffs]
Modified Tue Nov 28 15:31:20 2006 UTC (17 years, 4 months ago) by capela
File length: 63101 byte(s)
Diff to previous 946 , to selected 114
* Fixed some compilation warnings due to suspicious type
  casting and unsused header macros.

* Changed deprecated copyright attribute to license
  and added ldconfig to post-(un)install steps
  to liblscp.spec (RPM).


Revision 946 - (view) (download) (annotate) - [select for diffs]
Modified Mon Nov 27 18:33:02 2006 UTC (17 years, 4 months ago) by capela
File length: 61746 byte(s)
Diff to previous 921 , to selected 114
* As of the LSCP 1.2 working draft document, added
  some missing client interface functions:
    lscp_get_total_voice_count();
    lscp_get_total_voice_count_max();
  and for the new MIDI instrument mapping features:
    lscp_map_midi_instrument();
    lscp_unmap_midi_instrument();
    lscp_get_midi_instruments();
    lscp_get_midi_instrument_info();
    lscp_clear_midi_instruments();


Revision 921 - (view) (download) (annotate) - [select for diffs]
Modified Sun Sep 24 12:55:48 2006 UTC (17 years, 6 months ago) by capela
File length: 51708 byte(s)
Diff to previous 869 , to selected 114
GPL address update.


Revision 869 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jun 1 08:32:16 2006 UTC (17 years, 10 months ago) by capela
File length: 51711 byte(s)
Diff to previous 742 , to selected 114
* Fixed some compilation warnings due to suspicious type
  casting and unsused header macros.

* Changed deprecated copyright attribute to license
  and added ldconfig to post-(un)install steps
  to liblscp.spec (RPM).


Revision 742 - (view) (download) (annotate) - [select for diffs]
Modified Tue Aug 16 17:21:44 2005 UTC (18 years, 7 months ago) by capela
File length: 51711 byte(s)
Diff to previous 735 , to selected 114
Prepared for 0.3.1 release.


Revision 735 - (view) (download) (annotate) - [select for diffs]
Modified Tue Aug 16 09:48:42 2005 UTC (18 years, 7 months ago) by capela
File length: 51711 byte(s)
Diff to previous 626 , to selected 114
* Added support to sampler channel MUTE/SOLO states:
   lscp_set_channel_mute();
   lscp_set_channel_solo();
  with corresponding new lscp_channel_info_t fields.


Revision 626 - (view) (download) (annotate) - [select for diffs]
Modified Fri Jun 10 09:59:18 2005 UTC (18 years, 9 months ago) by capela
File length: 49576 byte(s)
Diff to previous 625 , to selected 114
* Fixed an off-by-one timeout quirk, that has been a real
  showstopper on Mac OS X at least, which is incidental
  to qsampler's default timeout setting of 1000 msecs,
  giving up systematically on select() due to "Invalid
  argument" (EINVAL).


Revision 625 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jun 9 15:55:49 2005 UTC (18 years, 9 months ago) by capela
File length: 49579 byte(s)
Diff to previous 623 , to selected 114
* Fixed an off-by-one timeout quirk, that has been a real
  showstopper on Mac OS X at least, which is incidental
  to qsampler's default timeout setting of 1000 msecs,
  giving up systematically on select() due to "Invalid
  argument" (EINVAL).


Revision 623 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jun 9 10:37:19 2005 UTC (18 years, 9 months ago) by capela
File length: 49578 byte(s)
Diff to previous 565 , to selected 114
* [bug #11] Timeout flush idiosyncrasy is now a feature;
  this just tries to flush the receive buffer whenever
  any previous transaction has failed due to a timeout.


Revision 565 - (view) (download) (annotate) - [select for diffs]
Modified Sun May 22 22:22:26 2005 UTC (18 years, 10 months ago) by capela
File length: 49546 byte(s)
Diff to previous 564 , to selected 114
* Fixed support for the newest LSCP command: GET SERVER INFO.


Revision 564 - (view) (download) (annotate) - [select for diffs]
Modified Sun May 22 22:02:00 2005 UTC (18 years, 10 months ago) by capela
File length: 49544 byte(s)
Diff to previous 562 , to selected 114
* Added support for the newest LSCP command: GET SERVER INFO.


Revision 562 - (view) (download) (annotate) - [select for diffs]
Modified Sun May 22 11:27:56 2005 UTC (18 years, 10 months ago) by capela
File length: 47853 byte(s)
Diff to previous 523 , to selected 114
* More LSCP command syntax changes, particularly on the
  event subscription ones: the LSCP_EVENT_CHANNELS event
  definition were renamed to LSCP_EVENT_CHANNEL_COUNT,
  as to be more meaningful.


Revision 523 - (view) (download) (annotate) - [select for diffs]
Modified Mon May 9 10:17:12 2005 UTC (18 years, 10 months ago) by capela
File length: 47900 byte(s)
Diff to previous 378 , to selected 114
* [bug #9] Fixed for a LSCP command syntax convention
consistency, regarding the enumeration of available
sampler engines, Audio and MIDI drivers; this has
affected the signature of the following functions:
  lscp_get_available_engines();
  lscp_get_available_audio_drivers();
  lscp_get_available_midi_drivers();
which are now returning an integer count of engines
and drivers, respectively, while the following
functions are now being introduced:
  lscp_list_available_engines();
  lscp_list_available_audio_drivers();
  lscp_list_available_midi_drivers();
taking on the previous functionality, returning
a comma separated list of names.


Revision 378 - (view) (download) (annotate) - [select for diffs]
Modified Sun Feb 13 17:20:46 2005 UTC (19 years, 1 month ago) by capela
File length: 47264 byte(s)
Diff to previous 370 , to selected 114
Added support for the new INSTRUMENT_NAME of GET CHANNEL INFO command.


Revision 370 - (view) (download) (annotate) - [select for diffs]
Modified Fri Feb 11 13:32:19 2005 UTC (19 years, 1 month ago) by capela
File length: 47005 byte(s)
Diff to previous 279 , to selected 114
Minor error message prefix correction.


Revision 279 - (view) (download) (annotate) - [select for diffs]
Modified Mon Oct 11 12:22:40 2004 UTC (19 years, 5 months ago) by capela
File length: 46996 byte(s)
Diff to previous 278 , to selected 114
* Fixed lscp_get_channel_info() to parse MIDI omni (ALL) channels mode.


Revision 278 - (view) (download) (annotate) - [select for diffs]
Modified Mon Oct 11 11:59:31 2004 UTC (19 years, 5 months ago) by capela
File length: 46772 byte(s)
Diff to previous 254 , to selected 114
* Fixed lscp_set_channel_midi_channel() again, MIDI
  channels should be given in the range 0-15, and omni
  mode with the LSCP_MIDI_CHANNEL_ALL symbol (16).


Revision 254 - (view) (download) (annotate) - [select for diffs]
Modified Tue Sep 28 14:06:18 2004 UTC (19 years, 6 months ago) by capela
File length: 46742 byte(s)
Diff to previous 253 , to selected 114
* Fix MIDI input selection (revised).


Revision 253 - (view) (download) (annotate) - [select for diffs]
Modified Mon Sep 27 14:40:08 2004 UTC (19 years, 6 months ago) by capela
File length: 46764 byte(s)
Diff to previous 213 , to selected 114
* Fixed lscp_set_channel_midi_channel() where MIDI
  channels should be given in the range 0-15, and
  omni mode with new LSCP_MIDI_CHANNEL_ALL symbol.

* Rearrangement on main command requester executive.


Revision 213 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jul 29 09:22:02 2004 UTC (19 years, 8 months ago) by capela
File length: 46725 byte(s)
Diff to previous 188 , to selected 114
* LSCP document draft (v.12); lscp_reset_sampler() added.


Revision 188 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jul 8 09:13:36 2004 UTC (19 years, 8 months ago) by capela
File length: 46112 byte(s)
Diff to previous 180 , to selected 114
- lscp_set_channel_audio_channel() is using a wrong command syntax: fixed.
- device configuration functions missing on documention main page: added.


Revision 180 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jul 6 20:20:51 2004 UTC (19 years, 8 months ago) by capela
File length: 46113 byte(s)
Diff to previous 179 , to selected 114
Prepared for 0.2.0 release.


Revision 179 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jul 6 16:24:41 2004 UTC (19 years, 8 months ago) by capela
File length: 45953 byte(s)
Diff to previous 177 , to selected 114
Some minor and probable memory leak resolutions.


Revision 177 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jul 6 14:06:17 2004 UTC (19 years, 8 months ago) by capela
File length: 45965 byte(s)
Diff to previous 171 , to selected 114
Simple use of condition variable on event subscription synchronization.


Revision 171 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jul 5 16:26:44 2004 UTC (19 years, 8 months ago) by capela
File length: 44485 byte(s)
Diff to previous 167 , to selected 114
Milestone for integral implementation of draft-protocol v.11.


Revision 167 - (view) (download) (annotate) - [select for diffs]
Modified Fri Jul 2 14:36:43 2004 UTC (19 years, 9 months ago) by capela
File length: 43725 byte(s)
Diff to previous 163 , to selected 114
* New lscp_get_channel_stream_usage() helper function.


Revision 163 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jun 30 15:16:03 2004 UTC (19 years, 9 months ago) by capela
File length: 41996 byte(s)
Diff to previous 146 , to selected 114
Driver parameter info wrapper implementation.


Revision 146 - (view) (download) (annotate) - [select for diffs]
Modified Fri Jun 25 12:00:25 2004 UTC (19 years, 9 months ago) by capela
File length: 41772 byte(s)
Diff to previous 144 , to selected 114
* Major changes to server event protocol interface
  on attempt to comply with draft-protocol v.11.


Revision 144 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jun 24 18:25:11 2004 UTC (19 years, 9 months ago) by capela
File length: 42919 byte(s)
Diff to previous 132 , to selected 114
* Major change to client event protocol interface on attempt
  to comply with draft-protocol v.11.

* New function entries added: lscp_load_instrument_non_modal(),
  lscp_set_channel_audio_device() and lscp_set_channel_midi_device().


Revision 132 - (view) (download) (annotate) - [select for diffs]
Modified Fri Jun 18 14:19:19 2004 UTC (19 years, 9 months ago) by capela
File length: 38352 byte(s)
Diff to previous 125 , to selected 114
* Overall mutexing of client command calls;
  preparation of forthcoming v.09 LSCP document draft.


Revision 125 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jun 14 21:04:04 2004 UTC (19 years, 9 months ago) by capela
File length: 40589 byte(s)
Diff to previous 114
* Added support for the new LIST commands (draft v.08).


Revision 114 - (view) (download) (annotate) - [selected]
Modified Mon Jun 7 21:40:23 2004 UTC (19 years, 9 months ago) by capela
File length: 39346 byte(s)
Diff to previous 107
* New lscp_socket_herror() wraper function
  for proper gethostbyname() error messages.


Revision 107 - (view) (download) (annotate) - [select for diffs]
Added Fri Jun 4 21:06:59 2004 UTC (19 years, 9 months ago) by capela
File length: 39310 byte(s)
Diff to selected 114
Initial alpha release.


This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

  ViewVC Help
Powered by ViewVC