Commit Graph

44 Commits

Author SHA1 Message Date
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
Peter Åstrand
3a323bbcc1 Fixed indentation
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@498 423420c4-83ab-492f-b58f-81f9feb106b5
2003-10-15 14:01:32 +00:00
Michael Gernoth
eb808f7d0b fix gccism
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@492 423420c4-83ab-492f-b58f-81f9feb106b5
2003-10-14 07:53:10 +00:00
Michael Gernoth
9ba4716057 Fix format-detection by Robert Sanders
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@491 423420c4-83ab-492f-b58f-81f9feb106b5
2003-10-14 07:46:49 +00:00
Michael Gernoth
5d67a3e036 Volume control for OSS & SUN
Ignore first 4 bytes of audio-packet (clicking noise)


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@490 423420c4-83ab-492f-b58f-81f9feb106b5
2003-10-13 16:09:45 +00:00
Matt Chapman
d3e6c1a157 Preliminary sound support (PCM only).
Based on code from GuoJunBo <guojunbo@ict.ac.cn>


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@473 423420c4-83ab-492f-b58f-81f9feb106b5
2003-09-30 09:11:08 +00:00
Peter Åstrand
7ff54cdd90 Indent fixes
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@434 423420c4-83ab-492f-b58f-81f9feb106b5
2003-07-09 09:18:20 +00:00
Matt Chapman
5b9286e6ea Commit of work in progress on channels (so that other people can hack on
RDPSND), in particular:
* channel layer takes care of virtual channel header
* split X dependent parts out of CLIPRDR, simplified IPC implementation
* initial RDPDR implementation


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@431 423420c4-83ab-492f-b58f-81f9feb106b5
2003-07-01 09:31:25 +00:00