Commit Graph

186 Commits

Author SHA1 Message Date
Michael Jumper
1887102505 Add frame timeout. Reduce frame max duration to 40ms. 2013-08-20 21:13:26 -07:00
Michael Jumper
280622c027 Bump max frame duration to 80 ms (12.5 FPS). 2013-08-20 11:38:12 -07:00
Michael Jumper
21420aaf5c Stay in handle_messages for 30ms max (per frame). 2013-08-20 11:32:47 -07:00
Michael Jumper
dfe454f484 Adjust buffer size to around 48K, rename and reuse old buffer size macro accordingly. 2013-08-10 12:30:46 -07:00
Michael Jumper
3bb4c8fec5 Increase buffer size to around 24K. 2013-08-10 01:50:42 -07:00
Michael Jumper
5df7f34ee8 Add constants. Tweak latency. 2013-08-09 18:21:32 -07:00
Michael Jumper
fa3dcea44b Working sound 2013-08-09 17:01:06 -07:00
Michael Jumper
6e3bbe38d5 Make audio buffers const. 2013-08-09 16:52:25 -07:00
Michael Jumper
bfbebe3c16 Set stream options, force channel format. 2013-08-09 16:46:23 -07:00
Michael Jumper
83a575d7b9 Actually receive data. 2013-08-09 16:43:30 -07:00
Michael Jumper
8bbd28d9c9 Handler server and sink info. 2013-08-09 16:04:58 -07:00
Michael Jumper
3e1744a566 Initialize PulseAudio properly. Handle state changes. 2013-08-09 15:47:59 -07:00
Michael Jumper
88f62df0f3 Switch to normal PulseAudio API. 2013-08-09 15:11:31 -07:00
Michael Jumper
6cc6808eb7 Actually connect and read. 2013-08-09 13:03:01 -07:00
Michael Jumper
832e4d3d16 Add stub PulseAudio handling code, replace old usage with new read thread. 2013-08-09 11:58:29 -07:00
Michael Jumper
daa7823aed Remove old PulseAudio handling code. 2013-08-09 11:58:03 -07:00
Michael Jumper
27d56df073 Removal of more buffer-related code. 2013-08-09 11:18:47 -07:00
Michael Jumper
ec73bc2e12 Remove buffer functions from PA code. 2013-08-09 11:18:46 -07:00
Michael Jumper
b681e0d9f1 Remove audio args. 2013-08-09 11:18:46 -07:00
Michael Jumper
7146ba5792 Remove buffer from client. 2013-08-09 11:18:46 -07:00
Michael Jumper
0870eaa32c Remove buffer and queue. 2013-08-09 11:18:46 -07:00
Michael Jumper
3d2427d441 Fix compilation of PulseAudio handlers. 2013-08-09 10:48:41 -07:00
Michael Jumper
0b743fa68b Add missing wav_encoder.c in Makefile.am 2013-08-09 10:48:41 -07:00
Michael Jumper
2a18630718 Move files to proper location. Get rid of unnecessary lock. Remove wrongly-committed file. 2013-08-09 10:48:41 -07:00
Michael Jumper
9f167cc26a Add documentation, fix namespace. 2013-08-09 10:48:40 -07:00
Michael Jumper
58148884a1 Auto-detect audio encoding if not specified. 2013-08-09 10:48:40 -07:00
Michael Jumper
8bd70053be Initial support for audio in libguac. 2013-08-09 10:48:40 -07:00
Michael Jumper
8e732ed2ab Conditionally compile audio support. 2013-08-09 10:48:00 -07:00
Sion Chaudhuri
e30c769728 Fixing newline issues on files modified to support audio 2013-08-09 10:48:00 -07:00
Sion Chaudhuri
a9957e7926 Adding lock around send cursor 2013-08-09 10:48:00 -07:00
Sion Chaudhuri
bbe552e847 Adding locks around guac send instructions to resolve client disconnect issue 2013-08-09 10:48:00 -07:00
Sion Chaudhuri
ea8feac587 Free up resources allocated for audio when client connection is closed 2013-08-09 10:48:00 -07:00
Sion Chaudhuri
b63e14c274 Trigger audio read and send threads if audio is enabled by client 2013-08-09 10:48:00 -07:00
Sion Chaudhuri
57c0f7ed04 Added support for audio files in configure and make 2013-08-09 10:48:00 -07:00
Michael Jumper
b6581e98d7 Implement read. 2013-08-05 20:15:41 -07:00
Michael Jumper
286f9c75b9 Byte reads should be unsigned. 2013-08-05 20:12:38 -07:00
Michael Jumper
3137f54178 Add unicode.h to distribution. Add actual tests for old Unicode functions. 2013-08-05 15:05:52 -07:00
Michael Jumper
070f199916 Implement additional UTF-8 read/write functions for convenience. 2013-08-05 14:00:16 -07:00
Michael Jumper
8099a57fc6 Switch to VNC-style wait. 2013-07-28 19:43:20 -07:00
Michael Jumper
acf5abe355 Stay in handle_messages as long as possible for VNC as well. 2013-07-28 19:43:20 -07:00
Michael Jumper
4b6aa01517 Unlock lock properly. 2013-07-28 19:43:20 -07:00
Michael Jumper
ce759ccbe6 Flush only automatically. Stay in handle_messages as long as data is available. 2013-07-28 19:43:20 -07:00
Michael Jumper
a52a13584b Initialize devices_registered. 2013-07-24 23:51:49 -07:00
Michael Jumper
1e521a1696 Call free handler on devices. Only add printer if enabled. 2013-07-24 22:49:24 -07:00
Michael Jumper
6b4deb703a Finish dynamic device implementation. 2013-07-24 22:20:29 -07:00
Michael Jumper
d65a23349d Add announce handlers. 2013-07-24 18:28:20 -07:00
Michael Jumper
1138df74be Initial migration to dynamic device registration. 2013-07-24 15:52:46 -07:00
Michael Jumper
7661f465e5 Remove STUB, add notes. 2013-07-22 20:26:16 -07:00
Michael Jumper
9b9481d072 Push/pull settings properly before and after connect. 2013-07-22 20:26:16 -07:00
Michael Jumper
82f1fb2bad Fix plugin names - sound and printing were not loading properly. 2013-07-22 20:26:16 -07:00
Michael Jumper
9d2b0e1f95 FALSE should be false. 2013-07-22 20:26:15 -07:00
Michael Jumper
f9bd8eb22b Fix build on 1.0 again. 2013-07-22 20:26:15 -07:00
Michael Jumper
07538d1b10 Do not commit settings until actually set. 2013-07-22 20:26:15 -07:00
Michael Jumper
59e90b7c63 Implement settings. 2013-07-22 20:26:15 -07:00
Michael Jumper
ddeab9a435 Fix install path. Fix rdpdr plugin naming. 2013-07-22 20:26:15 -07:00
Michael Jumper
14fedacfc7 Finally working compile. 2013-07-22 20:26:15 -07:00
Michael Jumper
0e4dcff4f5 More fixes for cliprdr, fix color_depth. 2013-07-22 20:26:15 -07:00
Michael Jumper
3e9f551c4e Fix cliprdr portability handling. 2013-07-22 20:26:15 -07:00
Michael Jumper
f3f0900de9 Detect event interface, fix cliprdr. 2013-07-22 20:26:15 -07:00
Michael Jumper
c0f681066e Add test for change in type of rdpBitmap.Decompress. Fix cliprdr header. 2013-07-22 20:26:15 -07:00
Michael Jumper
daa1e18355 Check for addin registration headers and function, use if available. 2013-07-22 20:26:15 -07:00
Michael Jumper
c2fe48f00c Much more robust testing. Initial migration to own settings structure. 2013-07-22 20:26:15 -07:00
Michael Jumper
2b09098346 Fix erroneously uppercased TRUE value. 2013-07-22 20:26:15 -07:00
Michael Jumper
324d13853f Switch to UINT* and BOOL types. 2013-07-22 20:26:15 -07:00
Michael Jumper
9ad3b18f77 Fix build of RDPDR. 2013-07-22 20:26:15 -07:00
Michael Jumper
df01ba66ea Detect extension format. 2013-07-22 20:26:15 -07:00
Michael Jumper
450017a6bd Register add-in provider. 2013-07-22 20:26:15 -07:00
Michael Jumper
45b8d29a4f Check for interval_ms. 2013-07-22 20:26:15 -07:00
Michael Jumper
f43591068f Change plugin name to guacsnd, remove use of DEFINE_SVC_PLUGIN. 2013-07-22 20:26:14 -07:00
Michael Jumper
1bbf2b21d9 Add BYTE type. 2013-07-22 20:26:14 -07:00
Michael Jumper
aeea99a87f Detect types availability. 2013-07-22 20:26:14 -07:00
Michael Jumper
b72c99cea5 Move compat to generic, add winpr-stream.c. 2013-07-22 20:26:14 -07:00
Michael Jumper
da2bd88791 More migration and compatibility. 2013-07-22 20:26:14 -07:00
Michael Jumper
678d21cd36 More winpr compat, fix include test. 2013-07-22 20:26:14 -07:00
Michael Jumper
bdc5d862db Partial conversion to WinPR + compat. 2013-07-22 20:26:14 -07:00
Michael Jumper
873493a2de Remove use of xnew. 2013-07-22 20:26:14 -07:00
Michael Jumper
64b0ab84b5 Remove usage of xrealloc/xmalloc. 2013-07-22 20:26:14 -07:00
Michael Jumper
bffa28a7de Remove usage of xfree(). 2013-07-22 20:26:14 -07:00
Michael Jumper
7907b2f34a Remove now-unnecessary memory.h. 2013-07-22 20:26:14 -07:00
Michael Jumper
e049d35583 Clean up error handling. 2013-07-22 16:12:39 -07:00
Michael Jumper
98dd9d2c69 Remove unimplemented -A option. 2013-07-22 15:47:13 -07:00
Michael Jumper
9b89c2a3b5 Update documentation. 2013-07-22 15:45:40 -07:00
Michael Jumper
7b7227aefb Properly handle key and cert files. Better logging. 2013-07-22 15:42:11 -07:00
Michael Jumper
def887868a Add option for private key. 2013-07-22 14:49:28 -07:00
Michael Jumper
3140dbb20b Actually use SSL for I/O. 2013-07-22 14:24:37 -07:00
Michael Jumper
cdbb345d28 Fix usage instructions. 2013-07-22 13:39:37 -07:00
Michael Jumper
6792b65d4c Add options to guacd. Update docs. 2013-07-22 13:37:30 -07:00
Michael Jumper
bb74730629 Add stub SSL socket. 2013-07-21 20:10:37 -07:00
Michael Jumper
4a3a530fde Fix guac_rdp_clip_rect() handling of completely clipped rects. 2013-07-19 12:23:28 -07:00
Michael Jumper
c3bbf97d22 libdl is actually used by libguac, not guacd. 2013-07-08 18:52:30 -07:00
Michael Jumper
2b93deaac6 Do not unnecessarily link libraries. 2013-07-08 17:40:20 -07:00
Michael Jumper
0f609cb666 Test for VNC repeater support and cairo_format_stride_for_width(). 2013-07-08 13:03:04 -07:00
Michael Jumper
e6ec853edb Ticket #366: Restore --with-init-dir option for configure. 2013-07-08 10:35:56 -07:00
Michael Jumper
2d3cf15243 Ticket #365: Add missing PTHREAD_LIBS to guacd_LDFLAGS. 2013-07-07 15:03:30 -07:00
Michael Jumper
73b70ec072 Make audio streams threadsafe. 2013-07-07 00:23:18 -07:00
Michael Jumper
030eaec09e Remove unused print format option (require GhostScript). 2013-07-01 17:54:28 -07:00
Michael Jumper
54d3b160d7 Fix threading issues regarding flush DURING write not being blocked. Set process-shared attribute on mutexes in socket. 2013-07-01 15:03:47 -07:00
Michael Jumper
59b058be3d Ensure complete writes, define buffer size. 2013-07-01 15:03:47 -07:00
Michael Jumper
a08180acfe Remove unnecessary update lock, use threadsafe socket instead. 2013-07-01 15:03:46 -07:00
Michael Jumper
90697e35ba Use int instead of bool ... libraries sometimes redefine bool in headers. 2013-07-01 15:03:46 -07:00