jack1 codebase
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.5KB

  1. /*
  2. JACK transport client interface -- runs in the client process.
  3. Copyright (C) 2001-2003 Paul Davis
  4. Copyright (C) 2003 Jack O'Quin
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU Lesser General Public License as published by
  7. the Free Software Foundation; either version 2.1 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU Lesser General Public License for more details.
  13. You should have received a copy of the GNU Lesser General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  16. */
  17. #include <config.h>
  18. #include <jack/internal.h>
  19. #include "local.h"
  20. #ifdef OLD_TRANSPORT
  21. /* * * API functions for compatibility with old transport interface * * */
  22. int
  23. jack_engine_takeover_timebase (jack_client_t *client)
  24. {
  25. jack_request_t req;
  26. req.type = SetTimeBaseClient;
  27. req.x.client_id = client->control->id;
  28. return jack_client_deliver_request (client, &req);
  29. }
  30. void
  31. jack_get_transport_info (jack_client_t *client,
  32. jack_transport_info_t *info)
  33. {
  34. *info = client->engine->current_time;
  35. }
  36. void
  37. jack_set_transport_info (jack_client_t *client,
  38. jack_transport_info_t *info)
  39. {
  40. client->engine->pending_time = *info;
  41. }
  42. #endif /* OLD_TRANSPORT */