patch-src_psk31-transmitter_h 895 B

12345678910111213141516171819202122232425262728293031
  1. $OpenBSD: patch-src_psk31-transmitter_h,v 1.1 2010/07/01 01:57:33 jakemsr Exp $
  2. --- src/psk31-transmitter.h.orig Tue Aug 2 09:50:58 2005
  3. +++ src/psk31-transmitter.h Thu May 6 16:19:11 2010
  4. @@ -5,6 +5,8 @@
  5. #ifndef __PSK31_TRANSMITTER_INCLUDED
  6. #define __PSK31_TRANSMITTER_INCLUDED
  7. +#include <sndio.h>
  8. +
  9. #include "psk31-coder.h"
  10. #define DMA_BUF_BITS 10
  11. @@ -18,7 +20,7 @@ class psk31_transmitter { (private)
  12. int transmit_state;
  13. //int saved_echo_char;
  14. //int saved_echo_timestamp;
  15. - int audiofd;
  16. + struct sio_hdl *hdl;
  17. int cwmode;
  18. int qpsk;
  19. int lsb;
  20. @@ -85,7 +87,7 @@ class psk31_transmitter { (private)
  21. if(q) *q=qpsk; if(l) *l=lsb; if(f) *f=_txfreq;
  22. if(cw) *cw=cwmode;
  23. }
  24. - void set_audiofd(int fd) { audiofd=fd; }
  25. + void set_audiofd(struct sio_hdl *h) { hdl=h; }
  26. int send_char(int c);
  27. int send_string(char *str);
  28. int send_cw_string(int need_postamble, char *str);