rafael2k / darkice

DarkIce is a live audio streamer. It records audio from an audio interface (e.g. sound card), encodes it and sends it to a streaming server. This is the official development repository of Darkice.
http://www.darkice.org
200 stars 47 forks source link

src/SerialUlaw.cpp ] #12

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
src/SerialUlaw.cpp won't compile on Cygwin due to lack of cfmakeraw. Patch
follows.

Doug ~/darkice-0.20.1/src
$ diff SerialUlaw.cpp.patched SerialUlaw.cpp.original 
87,89d86
< #ifndef __CYGWIN__
< #define HAVE_CFMAKERAW 1 // not in Cygwin ...
< #endif
232,245c229
< 
< #ifdef HAVE_CFMAKERAW
<     // The easy way
<     cfmakeraw( &ts );
< #else
<     // The hard way
<     ts.c_iflag &= ~( IGNBRK | BRKINT | PARMRK | ISTRIP
<                             | INLCR | IGNCR | ICRNL | IXON );
<     ts.c_oflag &= ~OPOST;
<     ts.c_lflag &= ~( ECHO | ECHONL | ICANON | ISIG | IEXTEN );
<     ts.c_cflag &= ~( CSIZE | PARENB | CRTSCTS );
<     ts.c_cflag |= CS8 | CREAD | CLOCAL ;
< #endif
< 

---
>     cfmakeraw(&ts);

Original issue reported on code.google.com by news.obs...@gmail.com on 3 Jan 2010 at 5:32

GoogleCodeExporter commented 9 years ago
Work around for systems that don't have cfmakeraw 

Original comment by news.obs...@gmail.com on 3 Jan 2010 at 5:33

GoogleCodeExporter commented 9 years ago
Is this patch ok? Can I apply it?
Do you confirm darkice is working in Windows OS?

Original comment by rafael2k...@gmail.com on 19 Jul 2010 at 8:55

GoogleCodeExporter commented 9 years ago
That will let it *compile* in Cygwin at least ... with hopefully no changes for 
other OSes :-)  I haven't actually tested the resulting executable on 
Cygwin/Windows, though. 

Original comment by news.obs...@gmail.com on 19 Jul 2010 at 10:24

GoogleCodeExporter commented 9 years ago
If you could test the binary, I'll apply the patch.

Original comment by rafael2k...@gmail.com on 16 Jan 2012 at 9:29

GoogleCodeExporter commented 9 years ago

Original comment by rafael2k...@gmail.com on 16 Jan 2012 at 9:29