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.

98 lines
2.5KB

  1. /*
  2. Copyright (C) 2003 Robert Ham <rah@bash.sh>
  3. This program is free software; you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation; either version 2 of the License, or
  6. (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program; if not, write to the Free Software
  13. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  14. */
  15. #ifndef __JACK_NET_DRIVER_H__
  16. #define __JACK_NET_DRIVER_H__
  17. #include <unistd.h>
  18. #include <jack/types.h>
  19. #include <jack/driver.h>
  20. #include <jack/jack.h>
  21. #include <jack/transport.h>
  22. #include <netinet/in.h>
  23. typedef struct _net_driver net_driver_t;
  24. struct _net_driver
  25. {
  26. JACK_DRIVER_NT_DECL;
  27. jack_nframes_t net_period_up;
  28. jack_nframes_t net_period_down;
  29. jack_nframes_t sample_rate;
  30. jack_nframes_t bitdepth;
  31. jack_nframes_t period_size;
  32. int dont_htonl_floats;
  33. int always_wait_dedline;
  34. jack_nframes_t codec_latency;
  35. unsigned int listen_port;
  36. unsigned int capture_channels;
  37. unsigned int playback_channels;
  38. unsigned int capture_channels_audio;
  39. unsigned int playback_channels_audio;
  40. unsigned int capture_channels_midi;
  41. unsigned int playback_channels_midi;
  42. JSList *capture_ports;
  43. JSList *playback_ports;
  44. JSList *playback_srcs;
  45. JSList *capture_srcs;
  46. jack_client_t *client;
  47. int sockfd;
  48. int outsockfd;
  49. struct sockaddr_in syncsource_address;
  50. int reply_port;
  51. int srcaddress_valid;
  52. int sync_state;
  53. unsigned int handle_transport_sync;
  54. unsigned int *rx_buf;
  55. unsigned int *pkt_buf;
  56. unsigned int rx_bufsize;
  57. //unsigned int tx_bufsize;
  58. unsigned int mtu;
  59. unsigned int latency;
  60. unsigned int redundancy;
  61. jack_nframes_t expected_framecnt;
  62. int expected_framecnt_valid;
  63. unsigned int num_lost_packets;
  64. jack_time_t next_deadline;
  65. int next_deadline_valid;
  66. int packet_data_valid;
  67. int resync_threshold;
  68. int running_free;
  69. int deadline_goodness;
  70. int jitter_val;
  71. jack_time_t time_to_deadline;
  72. };
  73. #endif /* __JACK_NET_DRIVER_H__ */