Karl Mikaelsson
7870ef6f86
Refactor rdpsnd to follow to the MS-RDPEA specs more closely
...
Rename functions and change the constants to match the specification.
2017-10-05 14:41:25 +02:00
Henrik Andersson
8cb4149722
Use correct log message level for rdpsnd_process()
2017-09-26 15:04:58 +02:00
Henrik Andersson
87d8d123b8
Rework the logging system
...
This commit will add a logging system to solve the problem that
one actually need to recompile rdesktop from source to enable
different debug logging.
- Same logging api for all kind of logging and messages to
end user.
- Adding -v for verbose output when running rdesktop.
- All messages are logged into a subject and with a type, eg:
logger(Keyboard, Notice, "Autos-electing %s based on locale.", locale);
- Debug logging is enabled trough a environment variable RDEKSTOP_DEBUG,
which specifies subjects of interest, comma separated. There is a special
subject named All which includes all subject for debug loggin. There is also
a simple logic opeartor '!' = NOT which can be used in combination like:
RDESKTOP_DEBUG=All,!Graphics,!Sound
Which would give debug log output for All subject except Graphics and Sound.
2017-01-26 14:19:40 +01:00
Henrik Andersson
d4df8c9f20
Remove rdpsnd_rec extension from rdesktop
...
This commit removes the implementation of rdpsnd_rec extension
of rdpsnd protocol from rdesktop. The reason for this is that the
required driver (which only works on Windows 2003) provided by Cendio
is deprecated.
2016-12-05 09:06:35 +01:00
Henrik Andersson
4a4d0a9160
Updated comment to be more clarifying.
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1797 423420c4-83ab-492f-b58f-81f9feb106b5
2014-05-13 14:34:23 +00:00
Henrik Andersson
8c7c645285
Reintroduce special caps flag 0x00800000 which got
...
removed in commit r1791.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1796 423420c4-83ab-492f-b58f-81f9feb106b5
2014-05-13 14:03:08 +00:00
Henrik Andersson
b8557c42ea
Always enable rdpsnd channel and use flags to control use
...
of streamed audio or not.
This is a fix for driveredirection which requires rdpsnd
channel to work as mentioned in the following post.
http://social.msdn.microsoft.com/Forums/en-US/75024a3d-458f-4ed9-b55d-7852d0113bd7/rdpbcgrpdf-2-minors-problems-with-server-2012
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1791 423420c4-83ab-492f-b58f-81f9feb106b5
2014-03-06 11:43:43 +00:00
Peter Åstrand
b47063c74f
Consistent formatting of emails in copyright headers.
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1616 423420c4-83ab-492f-b58f-81f9feb106b5
2011-04-13 11:28:19 +00:00
Peter Åstrand
b638882347
Include emails in copyright statements.
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1615 423420c4-83ab-492f-b58f-81f9feb106b5
2011-04-13 11:13:04 +00:00
Peter Åstrand
27068f53f8
Updated the copyright notices for the things we have been working on.
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1612 423420c4-83ab-492f-b58f-81f9feb106b5
2011-04-13 08:55:42 +00:00
Pierre Ossman
a22d20b871
Handle resets of the server sound system more gracefully by resetting our
...
state if we see an unexpected negotiate request.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1593 423420c4-83ab-492f-b58f-81f9feb106b5
2010-04-09 13:54:46 +00:00
Peter Åstrand
42928d7ae1
Properly reset sound subsystem when reconnecting due to screen size
...
change (RandR).
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1592 423420c4-83ab-492f-b58f-81f9feb106b5
2010-04-09 13:12:31 +00:00
Peter Åstrand
281d7c9f06
Changed license to GPLv3
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1534 423420c4-83ab-492f-b58f-81f9feb106b5
2010-01-12 08:31:06 +00:00
Jay Sorg
88855ddcbf
update the copyright year
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1474 423420c4-83ab-492f-b58f-81f9feb106b5
2008-07-11 03:51:23 +00:00
Pierre Ossman
cd7d646517
Make sure to handle big endian systems for the record path as well.
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1429 423420c4-83ab-492f-b58f-81f9feb106b5
2008-02-08 10:34:53 +00:00
Pierre Ossman
e693ed89c7
Check that the sound backend supports wave_in_format_supported before
...
calling it.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1426 423420c4-83ab-492f-b58f-81f9feb106b5
2008-01-18 15:11:57 +00:00
Pierre Ossman
fda4c63c95
None of the drivers requires it to be open to determine supported formats,
...
so let's not require it. This allows the device to be busy when rdesktop starts
but can be used later when it becomes free.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1410 423420c4-83ab-492f-b58f-81f9feb106b5
2007-06-18 08:31:27 +00:00
Jay Sorg
4b80c655db
remove g++ errors and warnings
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1381 423420c4-83ab-492f-b58f-81f9feb106b5
2007-01-18 05:42:11 +00:00
Jay Sorg
6091381a81
prefix BOOL with RD_
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1371 423420c4-83ab-492f-b58f-81f9feb106b5
2007-01-08 04:47:06 +00:00
Jay Sorg
797df4fa02
copyright year update
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1364 423420c4-83ab-492f-b58f-81f9feb106b5
2007-01-04 05:39:39 +00:00
Jay Sorg
b670bdacfa
RD_ prefix and win32 compatibility for core files
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1363 423420c4-83ab-492f-b58f-81f9feb106b5
2007-01-04 04:55:56 +00:00
Pierre Ossman
0dbec16985
Add experimental extension to the RDPSND protocol that allows recording.
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1358 423420c4-83ab-492f-b58f-81f9feb106b5
2007-01-02 16:30:06 +00:00
Michael Gernoth
f39ecfa6f6
fix device_available which I broke in a previous commit
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1352 423420c4-83ab-492f-b58f-81f9feb106b5
2006-12-24 15:22:15 +00:00
Michael Gernoth
84a393eebb
fix double open of sound device. should at least allow oss, libao, sun and
...
sgi drivers to be selected again, when they only allow one open of the
device.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1349 423420c4-83ab-492f-b58f-81f9feb106b5
2006-12-24 13:48:50 +00:00
Pierre Ossman
c6712a8945
Abstract select() handling in rdpsnd so that backends can do their thing
...
more correctly.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1345 423420c4-83ab-492f-b58f-81f9feb106b5
2006-12-07 15:23:45 +00:00
Pierre Ossman
7180a70b7a
Fix bad variable reference.
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1343 423420c4-83ab-492f-b58f-81f9feb106b5
2006-12-06 13:59:43 +00:00
Pierre Ossman
869f31c2d5
Add more sensible debug output from rdpsnd.
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1342 423420c4-83ab-492f-b58f-81f9feb106b5
2006-12-06 13:55:34 +00:00
Pierre Ossman
10bad3c82d
New packet based parser for the rdpsnd protocol.
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1341 423420c4-83ab-492f-b58f-81f9feb106b5
2006-12-06 13:29:42 +00:00
Pierre Ossman
1f47dce7ed
Properly split volume channels for RDPSND_SET_VOLUME.
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1340 423420c4-83ab-492f-b58f-81f9feb106b5
2006-12-06 13:18:36 +00:00
Pierre Ossman
838f43b3b7
Update rdpsnd_negotiate() to new information.
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1339 423420c4-83ab-492f-b58f-81f9feb106b5
2006-12-06 13:11:35 +00:00
Pierre Ossman
7f088cbabf
Change servertick to ping according to new information.
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1338 423420c4-83ab-492f-b58f-81f9feb106b5
2006-12-06 13:01:45 +00:00
Pierre Ossman
5fe136fec2
Ticks are in ms, not us.
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1336 423420c4-83ab-492f-b58f-81f9feb106b5
2006-12-06 12:31:58 +00:00
Michael Gernoth
8d3020eaff
only declare rdpsnd_optarg when sound-support is configured
...
make sure last element of sound-driver-list is NULL
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1331 423420c4-83ab-492f-b58f-81f9feb106b5
2006-11-06 23:05:39 +00:00
Pierre Ossman
22d88645ff
Rewrite the queue management a bit so that blocks are not completed until
...
they have finished playing. This also makes the queue system mandatory for
all backends.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1301 423420c4-83ab-492f-b58f-81f9feb106b5
2006-10-26 09:47:17 +00:00
Pierre Ossman
cf91d83caf
Inline functions with external linkage is a gcc-ism and not kosher under C99.
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1298 423420c4-83ab-492f-b58f-81f9feb106b5
2006-10-19 11:28:53 +00:00
Pierre Ossman
dd78c23e5e
Make sure we get valid return values from the sound backends.
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1297 423420c4-83ab-492f-b58f-81f9feb106b5
2006-10-19 11:27:40 +00:00
Michael Gernoth
bc3c75e4dc
make rdpsnd_auto_open and rdpsnd_register_drivers static
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1273 423420c4-83ab-492f-b58f-81f9feb106b5
2006-10-01 11:00:03 +00:00
Michael Gernoth
5594a05572
let 'make proto' generate correct prototypes for rdpsnd
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1272 423420c4-83ab-492f-b58f-81f9feb106b5
2006-10-01 10:56:39 +00:00
Michael Gernoth
6e6853dff8
move sound-driver selection code in rdpsnd_init
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1271 423420c4-83ab-492f-b58f-81f9feb106b5
2006-09-21 19:00:11 +00:00
Michael Gernoth
162bc366b3
handle missing audio-drivers better
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1270 423420c4-83ab-492f-b58f-81f9feb106b5
2006-09-18 21:42:50 +00:00
Michael Gernoth
c4b90c2072
Recover missing 4 bytes in audio-stream thanks to a hint in an old
...
email from Robert Sanders <esquimaux73@mailblocks.com>:
I found a trick that seems to solve this. Basically, I copy the last
4 bytes of the RDPSND_WRITE command that precedes the sample data.
It's not being used by anything else. I can't tell whether this is
some trick to "pre-load" the sample buffer, or some error in
rdesktop's interpretation of the RDP sound protocol.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1264 423420c4-83ab-492f-b58f-81f9feb106b5
2006-09-17 20:06:37 +00:00
Michael Gernoth
f80ca3e60e
change probe-order for OSS and SUN around
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1263 423420c4-83ab-492f-b58f-81f9feb106b5
2006-09-17 19:08:14 +00:00
Michael Gernoth
4c83a35b48
call rdpsnd_dsp_process from a better place
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1262 423420c4-83ab-492f-b58f-81f9feb106b5
2006-09-17 18:08:51 +00:00
Michael Gernoth
76459e4005
add software volume control (currently only for libao but will be
...
used for alsa, too)
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1257 423420c4-83ab-492f-b58f-81f9feb106b5
2006-09-17 14:41:16 +00:00
Michael Gernoth
99afd6a9f1
fix SunCC errors/warnings and configure-variable-usage (LIBS/LDFLAGS)
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1255 423420c4-83ab-492f-b58f-81f9feb106b5
2006-09-17 11:42:22 +00:00
Michael Gernoth
07b5b9e41c
allow multiple sound-drivers to be compiled in simultaneously and
...
make the runtime selectable
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1254 423420c4-83ab-492f-b58f-81f9feb106b5
2006-09-17 11:04:50 +00:00
Michael Gernoth
ec4862937f
unify queue-handling in rdpsnd.c (remove private copies from all
...
drivers)
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1253 423420c4-83ab-492f-b58f-81f9feb106b5
2006-09-17 10:32:18 +00:00
Michael Gernoth
f398b261b2
UNKNOWN6 is the tick of the packet we should be playing at this time
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1043 423420c4-83ab-492f-b58f-81f9feb106b5
2006-02-08 12:10:41 +00:00
Peter Åstrand
1320755f2b
Added missing c-basic-offset:s and license headers
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@962 423420c4-83ab-492f-b58f-81f9feb106b5
2005-08-03 10:56:16 +00:00
Peter Åstrand
7bd9d6e162
Made internal functions static.
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@664 423420c4-83ab-492f-b58f-81f9feb106b5
2004-04-17 07:24:22 +00:00