Commit Graph

334 Commits

Author SHA1 Message Date
Hardening
f33f755635 Also specify the timestamp when sending samples
This patch complements the SendSample() callback to take the timestamp
as extra argument.
2014-06-18 23:44:34 +02:00
Hardening
99d531655c Implement a confirm block callback
This patch adds a callback called when we receive feedback from the
client.
2014-06-18 23:44:34 +02:00
Marc-André Moreau
53639dea0b channels: reduce dependency on svc_plugin.h 2014-06-11 15:09:28 -04:00
Martin Fleisz
6f1f4be0ae Merge pull request #1873 from hardening/WTSVirtualChannelWriteCallers
Don't use NULL for pWrittenBytes when calling WTSVirtualChannelWrite()
2014-06-03 16:40:05 +02:00
Vic Lee
a4c583c459 rdpsnd/server: fix incorrect use of channe handle. 2014-05-30 23:00:15 +08:00
Hardening
c076ffb020 Don't use NULL for pWrittenBytes when calling WTSVirtualChannelWrite()
Nothing in the MSDN API says that setting NULL is safe. And if the
implementation uses WriteFile directly, it crashes.
2014-05-28 17:04:24 +02:00
Hardening
965eefe04e Fixed bad check 2014-05-02 22:45:38 +02:00
Hardening
09c9181f8d Fix ChannelEvent 2014-05-02 21:53:52 +02:00
Hardening
a7023769d0 Fixes in the server-side sound channel
This patch:
* treats OOM situations
* adds checks when reading audio channel messages
2014-04-29 01:02:35 +02:00
Marc-André Moreau
769502ec72 Merge branch 'master' of github.com:FreeRDP/FreeRDP 2014-04-26 13:47:01 -04:00
Vic Lee
08b4976f72 Revert "channels: fix link errors."
This reverts commit 2fc7f9c485.
2014-04-22 15:05:53 +08:00
Marc-André Moreau
13d61f341d Merge branch 'master' of github.com:FreeRDP/FreeRDP 2014-04-21 16:28:01 -04:00
Marc-André Moreau
784e9abd79 cmake: improve __FILE__ relative path hack 2014-04-21 14:42:24 -04:00
Vic Lee
2fc7f9c485 channels: fix link errors. 2014-04-21 17:47:12 +08:00
Benoit LeBlanc
27c753f80c Merge branch 'master' of git://github.com/awakecoding/FreeRDP 2014-03-19 11:53:10 -04:00
Marc-André Moreau
db1159f7b6 Merge pull request #1737 from zhangzl2013/sound-fix
Sound fix
2014-03-13 10:35:33 -04:00
Benoît LeBlanc
c6f235e1ee Merge branch 'master' of git://github.com/awakecoding/FreeRDP 2014-03-12 18:23:26 -04:00
Benoît LeBlanc
dde8d81f46 Removed WLOG traces for audio playback 2014-03-12 18:23:17 -04:00
Zhang Zhaolong
ffb53ba5e2 sound: cleanup invalid code. 2014-03-12 17:16:06 +08:00
Zhang Zhaolong
9cf6d1d9ae sound: fix long latency. 2014-03-12 17:02:45 +08:00
Zhang Zhaolong
69c926eb37 sound: fix random volume on connection. 2014-03-12 15:04:33 +08:00
Zhang Zhaolong
69296ce3bd wfreerdp: build fix. 2014-03-04 13:54:25 +08:00
Marc-André Moreau
6695873394 libwinpr-wtsapi: fix multiple inconsistencies with original wtsapi headers 2014-02-28 14:49:57 -05:00
Marc-André Moreau
419e2936be Merge branch 'master' of github.com:awakecoding/FreeRDP into channels 2014-02-27 15:09:06 -05:00
Marc-André Moreau
951368a1ce Merge branch 'master' of github.com:FreeRDP/FreeRDP 2014-02-27 13:58:29 -05:00
Marc-André Moreau
6e1cdf1b67 libfreerdp-core: expose opaque HANDLE instead of WTSVirtualChannelManager* 2014-02-27 13:30:04 -05:00
Vic Lee
4fa2ca3062 rdpsnd-server: fix broken message parsing. 2014-02-20 23:33:27 +08:00
Marc-André Moreau
3e546a22a1 channels: start migrating existing server-side channels to WTSAPI 2014-02-16 22:07:00 -05:00
Marc-André Moreau
82b922a70d channels: rename custom CHANNEL_ENTRY_POINTS_EX to CHANNEL_ENTRY_POINTS_FREERDP to fix conflict 2014-02-16 17:38:59 -05:00
Marc-André Moreau
b833073f57 libfreerdp-core: make client virtual channel API prototypes converge towards original API 2014-02-16 17:27:36 -05:00
Marc-André Moreau
8a81208059 libfreerdp-core: move server-side virtual channels back into core 2014-02-15 17:42:59 -05:00
Marc-André Moreau
cdcd290c44 wfreerdp: fix most build warnings 2014-02-10 22:12:13 -05:00
Marc-André Moreau
5ff847a6e6 wfreerdp: fix multiple warnings 2014-02-10 01:06:11 -05:00
Marc-André Moreau
6acd0ed84a channels/rdpsnd: improve winmm rdpsnd implementation 2013-12-15 15:59:51 -05:00
Marc-André Moreau
4356eb5572 Merge branch 'audio' of github.com:FreeRDP/FreeRDP
Conflicts:
	libfreerdp/codec/audio.c
2013-12-11 17:24:00 -05:00
Marc-André Moreau
f890771871 channels/rdpsnd: fix audio duration computation for GSM610 format 2013-12-11 17:21:29 -05:00
Marc-André Moreau
95a452e77f channels/rdpsnd: start using AudioConverter 2013-12-09 17:34:23 -05:00
Marc-André Moreau
c230e872af channels/rdpsnd: start refactoring mac audio code 2013-12-09 16:02:42 -05:00
Marc-André Moreau
76c842285d channels/rdpsnd: initial attempt at adding GSM610 support 2013-11-22 12:11:39 -05:00
Marc-André Moreau
c1fa455c30 channels/rdpsnd: add wlog debug output 2013-11-19 15:31:38 -05:00
Marc-André Moreau
c03a2e5497 channels/rdpsnd: add option for configuring audio quality mode 2013-11-19 14:29:31 -05:00
Armin Novak
23b5845660 Fixed crash due to duplicate resource cleanup (MessagePipe freed in channel) 2013-11-12 10:22:04 +01:00
Marc-André Moreau
3c44ff9c83 channels/rdpsnd: fix bug in rdpsnd and rdpdr deinitialization 2013-11-06 14:31:33 -05:00
Marc-André Moreau
5406ebd5d8 channels/drive: refactoring 2013-11-03 19:10:33 -05:00
Marc-André Moreau
37450da55d cmake: fix exporting of targets on pre-2.8.11 2013-10-29 14:47:40 -04:00
Marc-André Moreau
55565e056c freerdp: export targets 2013-10-28 23:06:39 -04:00
Marc-André Moreau
f35d45488c channels/rdpsnd: make use of MessagePipe 2013-10-19 16:42:42 -04:00
Marc-André Moreau
bd64e616de channels/rdpsnd: decouple rdpsnd from svc_plugin 2013-10-19 16:20:31 -04:00
Marc-André Moreau
dbbb364caf channels: export audin and rdpsnd subsystem interface 2013-10-19 12:38:31 -04:00
Armin Novak
27566ce566 Fixed invalid return. 2013-10-01 11:19:16 +02:00
Armin Novak
8ccf7f8ca2 Fixed queue initialization and overflow checks. 2013-09-30 10:11:54 +02:00
Armin Novak
95468dcf17 Modified rdpsnd opensles backend, now just filling queue and not waiting
for completion of playback, results in better sound quality.
2013-09-27 15:55:14 +02:00
Armin Novak
2269cbe155 Merge branch 'master' of https://github.com/FreeRDP/FreeRDP into android_sound 2013-09-27 11:46:48 +02:00
Armin Novak
8139c4894b Cleaned up rdpsnd for android, prepared volume control. 2013-09-27 11:45:53 +02:00
Armin Novak
2839f5d755 Renamed plugins from 'opensl_es' to 'opensles' 2013-09-23 12:38:05 +02:00
Armin Novak
d60e74e622 Removed obsolete audiotrack implementation. 2013-09-20 12:48:35 +02:00
Armin Novak
1c506a3724 Fixed CommandLinePArseArgumentsA return value check, only abort if negative. 2013-09-20 10:11:05 +02:00
Armin Novak
01b6d5d229 Fixed compiler warnings. 2013-09-20 10:08:56 +02:00
Armin Novak
489e375f7b Fixed potential memory leak, now always calling WaveConfirm after playing
a sample.
2013-09-20 09:19:11 +02:00
Armin Novak
3f62a9176c Added audiotrack support to rdpsnd. 2013-09-19 12:01:14 +02:00
Armin Novak
4748d0e4dd Merged back audiotrack support from felix lang. 2013-09-19 12:00:49 +02:00
Armin Novak
403a9fff62 Fixed compiler warnings. 2013-09-19 10:34:18 +02:00
Armin Novak
64454faf71 Fixed double free of wave buffer. 2013-09-19 10:23:28 +02:00
Marc-André Moreau
518995a05e freerdp: merge with master 2013-09-16 17:10:27 -04:00
Marc-André Moreau
336e47e82f Merge pull request #1460 from akallabeth/thread_handle_fixes
Thread handle fixes
2013-09-16 13:40:32 -07:00
Marc-André Moreau
f790831e7d Merge branch 'master' of github.com:awakecoding/FreeRDP into xrdp-ng 2013-09-05 15:23:19 -04:00
Armin Novak
d7d5869cb6 Fixed thread handling. 2013-09-05 13:39:15 +02:00
Armin Novak
6ac0b10158 Removed buffer copy, still fixes memory leak. 2013-09-05 12:14:34 +02:00
Armin Novak
854aa3fcfa Fixed memory leak. 2013-09-05 12:14:34 +02:00
Armin Novak
e5c138a5b9 Fixed various memory leaks, allocation size issues and API misuse
warnings shown by clang as well as some compiler warnings.
2013-09-05 12:14:34 +02:00
Armin Novak
a3b531c036 Fixed issues found with clang-analyzer 2013-09-05 12:14:33 +02:00
Marc-André Moreau
7edfe66274 freerdp: various missing link dependencies and symbol exports 2013-09-03 21:48:26 -04:00
Marc-André Moreau
c11da95165 Merge branch 'master' of github.com:awakecoding/FreeRDP into xrdp-ng 2013-09-03 18:41:14 -04:00
Mike McDonald
3e1f72a011 Fixed minor formatting issues 2013-08-28 21:37:45 -04:00
Mike McDonald
cfe90ae829 Added RDPSND device plugin for iOS 2013-08-28 21:03:34 -04:00
Mike McDonald
772f738c47 Added RDPSND device plugin for iOS 2013-08-28 21:02:48 -04:00
Marc-André Moreau
c878200e00 channels/server: refactor to match WTSApi + avoid conflicts 2013-08-20 19:26:36 -04:00
Marc-André Moreau
552cee7431 channels/server: start refactoring to fully match WTSApi 2013-08-20 18:06:19 -04:00
Marc-André Moreau
23a8354656 channels: rdpsnd refactoring, drdynvc initial server-side code 2013-08-18 21:52:55 -04:00
Marc-André Moreau
e45f149db4 channels/rdpsnd: fix potential uninitialized value 2013-05-25 15:49:44 -04:00
Marc-André Moreau
e9d362b58e channels/printer: fix printer redirection and test with cups-pdf 2013-05-20 15:50:22 -04:00
Marc-André Moreau
fdf3ddcf9e freerdp: purge deprecated stream utils 2013-05-08 17:48:30 -04:00
Marc-André Moreau
fd230443c5 freerdp: purge old stream utils 2013-05-08 16:27:21 -04:00
Marc-André Moreau
5b92413843 freerdp: purge deprecated stream utils 2013-05-08 16:09:16 -04:00
Marc-André Moreau
b4cac74136 xfreerdp-server: fix RemoteFX encoding 2013-05-01 18:15:55 -04:00
Marc-André Moreau
51715636a5 freerdp: remove some deprecated stream utils 2013-04-29 22:35:15 -04:00
Marc-André Moreau
f4df4e4b26 channels: partial cleanup 2013-03-29 14:49:09 -04:00
Marc-André Moreau
d187becc28 freerdp: merge with master 2013-03-28 21:20:36 -04:00
Marc-André Moreau
3417a3aab5 freerdp: merge RDP_EVENT type with wMessage 2013-03-28 21:13:56 -04:00
Hardening
7701c9d934 Replace printf(...) by fprintf(stderr, ...) 2013-03-28 23:06:34 +01:00
Marc-André Moreau
8c8a82c31f libfreerdp-utils: purge old STREAM utils 2013-03-21 16:45:25 -04:00
Marc-André Moreau
a8201b0d1b libwinpr-utils: combine old and new stream utils 2013-03-21 15:19:33 -04:00
Marc-André Moreau
aec86e1da8 wfreerdp: start splitting CLI from client core 2013-03-18 20:12:51 -04:00
C-o-r-E
4c769bc01b rdpsnd: clean up debug output 2013-03-11 14:15:48 -04:00
C-o-r-E
1e8a7c6105 channels/rdpsnd: removed debug prints 2013-03-08 13:44:49 -05:00
C-o-r-E
7453fdaecc channels/rdpsnd: merged 2013-03-08 13:25:03 -05:00
C-o-r-E
2d3fc241a6 mfreerdp-server and rdpsnd server more fixes 2013-03-08 12:55:21 -05:00
C-o-r-E
989232dc41 mfreerdp-server and rdpsnd server fixes 2013-03-08 12:36:38 -05:00
Marc-André Moreau
2abd3d11bd channels/rdpsnd/server: cleanup pdu creation 2013-03-07 16:04:25 -05:00
Marc-André Moreau
cabc465464 channels/rdpsnd/server: get rid of old thread util 2013-03-07 15:33:27 -05:00
Marc-André Moreau
96fa4f462f libfreerdp-codec: move audio format processing code to codec library 2013-03-07 14:43:21 -05:00
C-o-r-E
e4702cac98 rdpsnd: server no longer crashes when mstsc version 8 connects 2013-03-07 14:21:50 -05:00
C-o-r-E
d50cddc1bd mfreerdp-server: begin reworking rdpsnd server channel 2013-03-07 13:34:12 -05:00
C-o-r-E
8ab7ce23b5 mfreerdp-server: check for invalid rdpsnd format 2013-03-05 17:31:31 -05:00
Bernhard Miklautz
b95bf97c20 android: build fix - no librt
Android NDK doesn't provide librt.
2013-02-28 11:47:09 +01:00
Marc-André Moreau
5468c53720 channels/rdpsnd: added better format debug output 2013-02-27 20:46:14 -05:00
Marc-André Moreau
af80955b78 wfreerdp: fix rdpsnd 2013-02-27 17:35:57 -05:00
Marc-André Moreau
761e1d464f channels/rdpsnd: add GetVolume() 2013-02-27 16:57:18 -05:00
Marc-André Moreau
5ead9ec30d channels/rdpsnd: fix stop/start 2013-02-27 15:10:35 -05:00
Marc-André Moreau
d815363fa7 channels/rdpsnd/alsa: fix build with DEBUG_SVC 2013-02-27 10:26:11 -05:00
Marc-André Moreau
6a775ff032 channels/rdpsnd: reduce ALSA buffer underruns 2013-02-26 17:54:16 -05:00
Marc-André Moreau
8df47fb7fa channels/rdpsnd: attempt computing proper timestamp for playback end 2013-02-26 11:50:48 -05:00
Marc-André Moreau
afa7f4b945 channels/rdpsnd: fix crashes on termination 2013-02-26 11:16:33 -05:00
Marc-André Moreau
2b9174a69b channels/rdpsnd: cleanup 2013-02-25 21:46:48 -05:00
Marc-André Moreau
efb0a15fc9 channels/rdpsnd: added audio data length 2013-02-25 17:49:07 -05:00
Marc-André Moreau
b6e46e4511 Merge branch 'master' of github.com:awakecoding/FreeRDP 2013-02-24 22:33:27 -05:00
Marc-André Moreau
c22e5181c1 channels/rdpsnd: added more ALSA debug output 2013-02-24 22:32:48 -05:00
Marc-André Moreau
fe34a529d5 freerdp: fix build and warnings on Mac OS X 2013-02-21 21:09:42 -05:00
Marc-André Moreau
71a205a21e channels/rdpsnd: cleanup ALSA setup 2013-02-21 19:20:13 -05:00
Marc-André Moreau
23879a429b channels/rdpsnd: refactor audio format negotiation 2013-02-21 18:41:41 -05:00
Marc-André Moreau
6ba81c2a1a channels/rdpsnd: added more debug output for timing 2013-02-21 16:03:47 -05:00
Marc-André Moreau
8e8c9445dc channels/rdpsnd: add detailed latency output 2013-02-21 14:58:39 -05:00
Marc-André Moreau
5f1b13d77f channels/rdpsnd: start work on WavePlay/WaveConfirm 2013-02-21 13:25:43 -05:00
Marc-André Moreau
413e8fcf36 channels/rdpsnd: process ALSA write in separate thread 2013-02-21 11:58:41 -05:00
Marc-André Moreau
05bd6cff73 channels/rdpsnd: further experimentation with async alsa 2013-02-21 10:46:11 -05:00
Marc-André Moreau
4df376739d channels/rdpsnd: start alsa async mode 2013-02-21 03:38:36 -05:00
Marc-André Moreau
385d0daced channels: get rid of semaphore locking, replace queues 2013-02-21 02:56:57 -05:00
Marc-André Moreau
7a289423c0 channels/rdpsnd: refactor scheduling of sending of sound PDUs 2013-02-20 21:34:47 -05:00
Marc-André Moreau
9164d2245e libfreerdp-utils: make use of ArrayList in Static Virtual Channel Plugin interface 2013-02-20 15:33:42 -05:00
Marc-André Moreau
fbdcd03a42 channels/rdpsnd: emulate timing of old queue 2013-02-20 12:11:19 -05:00
Marc-André Moreau
5e8d35c4ac channels/rdpsnd: use MessageQueue 2013-02-19 22:36:04 -05:00
Marc-André Moreau
43fd37de6e channels/rdpsnd: fix timestamps 2013-02-19 21:21:20 -05:00
Marc-André Moreau
abf4e6534e Merge branch 'master' of github.com:FreeRDP/FreeRDP 2013-02-19 18:13:39 -05:00
Marc-André Moreau
22c804e6ad channels/rdpsnd: refactoring 2013-02-19 17:47:55 -05:00
C-o-r-E
2bd632d077 mfreerdp-server: formatting 2013-02-19 15:06:42 -05:00
Marc-André Moreau
470cdb2570 xfreerdp: add async-channels command-line argument 2013-02-19 12:29:15 -05:00
Marc-André Moreau
3afac02d48 channels/rdpsnd: added sound format ids 2013-02-19 11:02:45 -05:00
Marc-André Moreau
dee4299e99 channels/rdpsnd/alsa: apply patch from tonyhook 2013-02-19 10:19:08 -05:00
C-o-r-E
9927364b6a channels/rdpsnd/client/mac: now properly linking 2013-02-05 17:22:34 -05:00
Vic Lee
ec54a44449 rdpsnd: fix some null pointer crashes. 2013-01-22 23:26:55 +08:00
Vic Lee
c5170a00e0 channels/rdpsnd: support wfreerdp using Windows Multimedia API. 2012-12-27 19:20:39 +08:00
Vic Lee
502368dd95 libwinpr-synch: proper handling fd event creation on Windows. 2012-12-21 11:41:18 +08:00
Marc-André Moreau
eea3414579 libfreerdp-utils: purge deprecated wait_obj utils 2012-11-26 20:15:48 -05:00
Marc-André Moreau
ab1cf1cb02 channels/rdpsnd: fix default device name with alsa 2012-11-26 01:23:23 -05:00
Marc-André Moreau
c8bfed8d31 channels: fix connection flags for rdpsnd 2012-11-26 01:15:11 -05:00
Marc-André Moreau
01158f9a34 libfreerdp-utils: purge deprecrated load_plugin utils from source tree 2012-11-21 21:28:48 -05:00
Marc-André Moreau
8a32de3801 libfreerdp: purged source tree from deprecated memory utils 2012-11-21 21:22:06 -05:00
Marc-André Moreau
2a16183f5d libfreerdp-utils: remove deprecated calls to xnew() macro 2012-11-21 20:21:08 -05:00
Marc-André Moreau
091f9f3034 client/common: automatically register fake rdpsnd channel when device redirection is in use 2012-11-21 09:30:16 -05:00
Marc-André Moreau
ecddb58ba2 channels: cmake cleanup, USB redirection refactoring 2012-11-20 19:34:52 -05:00