Pierre Ossman
da0172306d
Add configure flag for sound debug messages.
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1335 423420c4-83ab-492f-b58f-81f9feb106b5
2006-12-06 12:12:37 +00:00
Michael Gernoth
a520715f00
Don't depend on pkg-config during bootstrap
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1334 423420c4-83ab-492f-b58f-81f9feb106b5
2006-11-15 09:15:36 +00:00
Michael Gernoth
392b8f0d1a
sometimes libao corrupts memory, so don't call ao_initialize and ao_shutdown
...
when it's not really needed
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1333 423420c4-83ab-492f-b58f-81f9feb106b5
2006-11-07 16:48:48 +00:00
Michael Gernoth
56c2c71429
remove call to snd_pcm_drop as this is done implicitly by snd_pcm_close
...
and causes an assert on old alsa-versions
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1332 423420c4-83ab-492f-b58f-81f9feb106b5
2006-11-07 14:21:39 +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
Michael Gernoth
598af83615
set PKG_CONFIG if there is a pkg-config executable in the path
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1330 423420c4-83ab-492f-b58f-81f9feb106b5
2006-11-06 22:42:34 +00:00
Michael Gernoth
a9ad53b482
add human readable error messages
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1329 423420c4-83ab-492f-b58f-81f9feb106b5
2006-11-04 20:02:42 +00:00
Michael Gernoth
1a3b95e662
initialize scard_mutex
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1328 423420c4-83ab-492f-b58f-81f9feb106b5
2006-11-04 17:33:15 +00:00
Michael Gernoth
c3f49ea246
more smartcard locking fixes
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1327 423420c4-83ab-492f-b58f-81f9feb106b5
2006-11-03 23:51:35 +00:00
Michael Gernoth
8419d91138
make sure to lock the datapath of rdpdr_send_completion to prevent
...
simultaneous access to shared variables in multiple threads
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1326 423420c4-83ab-492f-b58f-81f9feb106b5
2006-11-03 19:56:42 +00:00
Michael Gernoth
659a1e062b
reset padding to 8, as it did not fix the disconnects
...
enable sendControl mutex, as the rest of rdesktop is not threadsafe and
parallel access to rdpdr_send_completion might very likely result in
these disconnects
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1325 423420c4-83ab-492f-b58f-81f9feb106b5
2006-11-03 18:57:09 +00:00
Michael Gernoth
27c2d61872
set pcm_handle to NULL on close
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1324 423420c4-83ab-492f-b58f-81f9feb106b5
2006-11-03 18:11:47 +00:00
Michael Gernoth
157b97643b
Add compatibility with older autoconf versions
...
PKG_PROG_PKG_CONFIG is done implicitly by autoconf, so no need to
call it manually. (It is not defined in old versions)
Thanks to Jennings Jared for noting
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1323 423420c4-83ab-492f-b58f-81f9feb106b5
2006-11-03 16:44:40 +00:00
Michael Gernoth
1c153f3315
Change email of Alexi Volkov
...
Remove smartcard banner from scard.c (ACKed by Alexi)
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1322 423420c4-83ab-492f-b58f-81f9feb106b5
2006-11-03 14:28:10 +00:00
Michael Gernoth
df43fd5d93
always pad
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1321 423420c4-83ab-492f-b58f-81f9feb106b5
2006-11-02 23:31:58 +00:00
Michael Gernoth
573ded9db3
increase padding.
...
this seems to fix disconnects with encryption-errors reported in the
TS log
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1320 423420c4-83ab-492f-b58f-81f9feb106b5
2006-11-02 23:12:25 +00:00
Michael Gernoth
69deb20512
use xmalloc for mutex allocation
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1319 423420c4-83ab-492f-b58f-81f9feb106b5
2006-11-02 21:32:56 +00:00
Michael Gernoth
24680f4f8d
clean up smartcard debugging
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1318 423420c4-83ab-492f-b58f-81f9feb106b5
2006-11-02 20:48:28 +00:00
Peter Åstrand
05d7a550b1
After closing g_dsp_fd, set g_dsp_busy to false. This prevents errors of type: ERROR: select: Bad file descriptor
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1317 423420c4-83ab-492f-b58f-81f9feb106b5
2006-11-02 11:55:59 +00:00
Michael Gernoth
bb039e933b
move response-limitation to a more appropriate place
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1316 423420c4-83ab-492f-b58f-81f9feb106b5
2006-11-02 11:09:35 +00:00
Michael Gernoth
58280c0b72
remove a bit code duplication
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1315 423420c4-83ab-492f-b58f-81f9feb106b5
2006-11-01 22:46:05 +00:00
Michael Gernoth
91d106dd41
warnings on newer openssl-versions
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1314 423420c4-83ab-492f-b58f-81f9feb106b5
2006-11-01 22:12:27 +00:00
Michael Gernoth
f93e31c840
fix warning: 'server_random' may be used uninitialized in this function
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1313 423420c4-83ab-492f-b58f-81f9feb106b5
2006-11-01 21:45:49 +00:00
Michael Gernoth
1e035e28ef
fix warnings
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1312 423420c4-83ab-492f-b58f-81f9feb106b5
2006-11-01 21:37:56 +00:00
Michael Gernoth
6b574d2ca7
add normal rdesktop-header to smartcard-files
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1311 423420c4-83ab-492f-b58f-81f9feb106b5
2006-11-01 21:26:55 +00:00
Michael Gernoth
ae67d3e759
Add smartcard support for mac os x
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1310 423420c4-83ab-492f-b58f-81f9feb106b5
2006-11-01 21:23:08 +00:00
Michael Gernoth
b3eadf86a3
fix for configure datarootdir-warning
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1309 423420c4-83ab-492f-b58f-81f9feb106b5
2006-11-01 20:53:40 +00:00
Michael Gernoth
f37c871e8b
Smartcard support by Alexi Volkov <alexi@pravex.kiev.ua> and additional
...
patches for smartcard-support by Jennings Jared <jared.jennings.ctr@eglin.af.mil>
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1308 423420c4-83ab-492f-b58f-81f9feb106b5
2006-11-01 20:52:01 +00:00
Michael Gernoth
082031280a
64bit fix from Jennings Jared <jared.jennings.ctr@eglin.af.mil>
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1307 423420c4-83ab-492f-b58f-81f9feb106b5
2006-11-01 18:38:40 +00:00
Peter Åstrand
577fed6a25
libsamplerate requires libm
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1306 423420c4-83ab-492f-b58f-81f9feb106b5
2006-10-30 09:01:01 +00:00
Peter Åstrand
6ac7e0a1be
Prevent segfaults in out of memory conditions by checking the pointer returned from XGetImage.
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1305 423420c4-83ab-492f-b58f-81f9feb106b5
2006-10-27 12:59:38 +00:00
Peter Åstrand
bcec43cb63
Indent fix
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1304 423420c4-83ab-492f-b58f-81f9feb106b5
2006-10-27 12:58:13 +00:00
Pierre Ossman
d9dbd38cfe
Fix some remaining references to rdpsnd_send_completion().
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1303 423420c4-83ab-492f-b58f-81f9feb106b5
2006-10-27 12:29:05 +00:00
Michael Gernoth
d5725f46d9
small fix to the (still disabled) linear resampler
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1302 423420c4-83ab-492f-b58f-81f9feb106b5
2006-10-26 22:26:16 +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
Peter Åstrand
227fad6d96
Define WITH_RDPSND when using sound
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1300 423420c4-83ab-492f-b58f-81f9feb106b5
2006-10-21 06:36:49 +00:00
Pierre Ossman
e882b6befd
Now that the rdpsnp queue functions aren't marked inline, they should be
...
in proto.h.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1299 423420c4-83ab-492f-b58f-81f9feb106b5
2006-10-19 12:26:55 +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
Peter Åstrand
212d1e57b0
Corrected pkgconfig check for libsamplerate
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1296 423420c4-83ab-492f-b58f-81f9feb106b5
2006-10-18 05:12:30 +00:00
Peter Åstrand
05c587ef64
Using pkgconfig for optional packages: libao, libsamplerate, and ALSA. New option: --enable-static-libsamplerate
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1295 423420c4-83ab-492f-b58f-81f9feb106b5
2006-10-16 12:23:13 +00:00
Michael Gernoth
fb206f958b
reset WAVEOUTLEN back to 16 as gui becomes unresponsive with higher values
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1294 423420c4-83ab-492f-b58f-81f9feb106b5
2006-10-14 22:12:47 +00:00
Peter Åstrand
712030924b
Undo incorrect commit
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1293 423420c4-83ab-492f-b58f-81f9feb106b5
2006-10-11 17:59:18 +00:00
Peter Åstrand
83817d6160
Changed the Copyright: tag to License: in accordance with RPM 4
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1292 423420c4-83ab-492f-b58f-81f9feb106b5
2006-10-11 17:56:05 +00:00
Michael Gernoth
3701080708
add (disabled) real linear resampler. quality is currently not as good
...
as previous simpler implementation, but will be improved
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1291 423420c4-83ab-492f-b58f-81f9feb106b5
2006-10-02 08:01:24 +00:00
Michael Gernoth
7b6705553d
improve sound quality a bit again
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1290 423420c4-83ab-492f-b58f-81f9feb106b5
2006-10-01 23:42:14 +00:00
Michael Gernoth
188b928bfa
rename WAVEOUTBUF to WAVEOUTLEN and increase it to 1024 bytes
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1289 423420c4-83ab-492f-b58f-81f9feb106b5
2006-10-01 22:30:34 +00:00
Michael Gernoth
23ea0a9173
make libao a bit more efficient on big endian
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1288 423420c4-83ab-492f-b58f-81f9feb106b5
2006-10-01 22:27:11 +00:00
Michael Gernoth
101a5557fa
convert between different numbers of input and output channels
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1287 423420c4-83ab-492f-b58f-81f9feb106b5
2006-10-01 21:46:38 +00:00
Michael Gernoth
65b4b60bd5
simplify resampling
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1286 423420c4-83ab-492f-b58f-81f9feb106b5
2006-10-01 19:05:30 +00:00