Armin Novak
72ca88f49c
Reformatted to new style
2019-11-07 10:53:54 +01:00
Martin Fleisz
bc39b32d20
Merge pull request #5685 from akallabeth/multi_instance_arg_parse
...
COMMAND_LINE_ARGUMENT structs contain parser results, use one per instance
2019-11-06 09:09:22 +01:00
Armin Novak
0c87eaee4d
COMMAND_LINE_ARGUMENT structs contain parser results, use one per instance
...
Remove the old global structs as the parser modifies them. When using
multiple instances in the same process space this could break parsing.
2019-10-28 13:30:05 +01:00
Armin Novak
30c21279cb
Fixed memory leak when freeing up audin formats.
2019-10-24 12:18:24 +02:00
Armin Novak
0f45a570fa
Added fallback for supported sample rates if original not supported.
...
Added format compatibility check between recording input and destination.
2018-11-14 13:27:20 +01:00
Martin Fleisz
00af869cd3
Merge pull request #4889 from akallabeth/shadow_server_audin_refactor
...
Shadow server audin refactor
2018-10-08 12:56:09 +02:00
Armin Novak
ac14763564
[audin] Abort version exchange if server version is not supported.
2018-10-04 13:53:18 +02:00
Armin Novak
18f97d03e7
Cleaned up defaults.
2018-09-26 12:49:09 +02:00
Armin Novak
106dde9571
Working mic redirection for shadow server.
2018-09-26 12:49:09 +02:00
Armin Novak
28efbbc01f
Refactored audio_format* functions.
2018-09-26 12:49:09 +02:00
Ondrej Holy
926ac4f938
channels/audin: Fix leak found by covscan
...
leaked_storage: Variable out going out of scope leaks the storage it points to.
2018-08-22 13:35:43 +02:00
Armin Novak
7355b4e5f3
Fixed leak in audio format processing.
2018-07-31 10:33:19 +02:00
Armin Novak
033abe93d4
Fixed callback parameter checks.
2018-07-30 11:22:11 +02:00
Armin Novak
3b187ef321
Code Cleanup
2018-07-19 16:21:03 +02:00
Armin Novak
d40daedb9c
Fixed FFMPEG backend: Do not drop samples for package alignment.
2018-07-19 15:17:54 +02:00
Armin Novak
7c8a556377
Fixed alignment issues.
2018-07-18 12:14:37 +02:00
Armin Novak
8664a3c91e
Fixed alsa and pulse backend receive buffer sizes
2018-07-17 16:18:21 +02:00
Armin Novak
b9645c9247
Using dynamic logger again.
2018-07-17 11:20:45 +02:00
Armin Novak
4465bcfa86
Fixed remarks
2018-07-04 11:03:32 +02:00
Armin Novak
bf70ee6267
Keep extra data of audio format locally cached.
2018-07-03 09:54:29 +02:00
Pascal J. Bourguignon
15f2bafeab
Cleaned up const char** -> char** for argv, since we definitely do modify the argv!
...
(we overwrite the password and pin arguments).
This implies changes in the argument parsing tests that now must pass a mutable argv
(copied from the statically declared test argvs).
Some other const inconsistency have been dealt with too.
2018-06-06 16:43:09 +02:00
Armin Novak
8758638c2a
Ensure audin channel uses supported protocol version 1.
2018-04-16 10:23:45 +02:00
Armin Novak
3f712cab70
Fixed formatting of changed files.
2018-04-05 13:14:16 +02:00
Armin Novak
2e801a8425
Free dsp context on close.
2018-04-05 13:14:16 +02:00
Armin Novak
f89c1857b9
Rewrite of sound and microphone channels
...
The sound and microphone redirection channels (and in part TSMF)
did not properly decouple encoding/decoding from the backends used
to play/record sound.
Encapsulating encoding/decoding in rewritten freerdp_dsp_* functions
with variable backends, simplifying alsa/oss/pulse/... audio backends.
2018-04-05 13:14:16 +02:00
Armin Novak
0c49152a3d
Fixed #4412 : memory corruption in audin channel.
2018-03-26 16:29:50 +02:00
Armin Novak
c53d72211a
Audin channel use dynamic logger where possible.
2018-03-26 14:40:23 +02:00
Armin Novak
4eb5b8e349
Replaced atoi
2017-11-15 15:52:16 +01:00
Armin Novak
0490aeb018
Fixed clang malloc integer overflow warnings.
2017-07-20 09:29:48 +02:00
Armin Novak
57901b8add
Added detach support for microphone
2016-12-19 17:13:25 +01:00
Armin Novak
9f19da798c
Added attach/detach support for channels.
2016-12-19 17:07:01 +01:00
Norbert Federa
f71b6b46e8
fix string format specifiers
...
- fixed invalid, missing or additional arguments
- removed all type casts from arguments
- added missing (void*) typecasts for %p arguments
- use inttypes defines where appropriate
2016-12-16 13:48:43 +01:00
Norbert Federa
c6e6b44143
countless WLog/printf format specifier fixes
2016-11-25 17:06:25 +01:00
Norbert Federa
90cdfa7646
cmake: replaced STATIC_CHANNELS with BUILTIN_CHANNELS
2016-06-15 13:36:27 +02:00
Armin Novak
704d69d540
Fixed NULL pointer access.
2016-05-12 09:28:12 +02:00
Armin Novak
36cbf1b583
Fixed error handling for channel load failures.
2016-03-14 13:13:43 +01:00
zihao.jiang
40ea6e9228
audin: Fixed default sys argument for audin
...
PR #3173 fixed argument parsing. However it breaks the usage without specifying subsystem: "/microphone"
In particular, aFreerdp microphone redirect is broken as it exactly uses "/microphone"
This PR fixes the regression.
Fix: We should not call CommandLineParseArgumentsA if argc is only 1 (same case as rdpsnd_main.c)
2016-03-11 01:52:18 +08:00
Bernhard Miklautz
120bd2d8bd
Merge pull request #3173 from akallabeth/audin_arg_fix
...
Fixed argument parsing for audin.
2016-03-03 20:39:31 +01:00
Armin Novak
5acd80dd5b
Exporting channel entry points.
2016-02-29 15:18:19 +01:00
Armin Novak
8482fbf854
Fixed formatting.
2016-02-29 12:34:53 +01:00
Armin Novak
71bea3e1d0
Fixed argument parsing for audin.
2016-02-28 19:56:57 +01:00
Armin Novak
90251f5e0d
Fixed OnNewChannelConnection arguments
2015-12-14 14:18:50 +01:00
Armin Novak
f6e17ec65c
Added audin support for mac os.
2015-11-12 16:10:39 +01:00
Martin Haimberger
52405a3e79
Remove WIN32ERROR type
...
All return values are UINT now.
2015-08-27 05:38:20 -07:00
Martin Haimberger
58ada13dd9
fixed some remakes and compiler errors
2015-07-22 02:36:24 -07:00
Martin Haimberger
6ab0187d84
Merge remote-tracking branch 'upstream/master' into mh-channel
...
Conflicts:
channels/audin/client/oss/audin_oss.c
channels/drive/client/drive_main.c
channels/printer/client/printer_cups.c
channels/printer/client/printer_main.c
channels/rail/client/rail_main.c
channels/rdpgfx/client/rdpgfx_main.c
channels/rdpsnd/client/oss/rdpsnd_oss.c
channels/remdesk/client/remdesk_main.c
channels/remdesk/server/remdesk_main.c
channels/tsmf/client/tsmf_media.c
2015-07-15 01:57:07 -07:00
Martin Haimberger
b8c110d19b
introduced channel error reporting system
...
The rdpContext gets an event which will
get set if an error occoured in a channel.
If a thread or a void callback has to report an
error it will get signaled by this system.
2015-07-15 00:50:35 -07:00
Martin Haimberger
156f86e487
hardend channel audin
2015-06-18 03:04:31 -07:00
ivan-83
1009268158
* debug and error messages now print function name and line number
...
* add debug messages to trace fake network dissconects
2015-05-27 22:57:10 +03:00
Norbert Federa
1eff1a345e
free can handle NULL perfectly fine
2015-05-11 09:07:39 +02:00