Commit Graph

27 Commits

Author SHA1 Message Date
Jay Sorg
6f014c836a remove g++ errors and warnings
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1393 423420c4-83ab-492f-b58f-81f9feb106b5
2007-02-10 07:12:36 +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
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
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
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
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
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
Michael Gernoth
076221eb15 add missing include
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1284 423420c4-83ab-492f-b58f-81f9feb106b5
2006-10-01 18:22:05 +00:00
Michael Gernoth
cd2ae82e7c sound quality fixes for resampling
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1283 423420c4-83ab-492f-b58f-81f9feb106b5
2006-10-01 17:51:51 +00:00
Michael Gernoth
a8f9e84598 add simple linear resampling implementation to be used when libsamplerate
is not available


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1282 423420c4-83ab-492f-b58f-81f9feb106b5
2006-10-01 17:23:30 +00:00
Michael Gernoth
de56acd493 fix conversion between arbitrary samplerates
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1281 423420c4-83ab-492f-b58f-81f9feb106b5
2006-10-01 15:07:55 +00:00
Michael Gernoth
deace67d29 make it possible to resample 8bit<->16bit soundstreams
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1280 423420c4-83ab-492f-b58f-81f9feb106b5
2006-10-01 14:31:09 +00:00
Michael Gernoth
e82b81576b make it possible for the driver to switch resampling on and off
dynamically. this will be needed for the OSS driver.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1278 423420c4-83ab-492f-b58f-81f9feb106b5
2006-10-01 14:03:43 +00:00
Michael Gernoth
8129a2d373 use libsamplerate for resampling when available
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1277 423420c4-83ab-492f-b58f-81f9feb106b5
2006-10-01 13:57:34 +00:00
Michael Gernoth
8f8ea57234 only resample when there is need
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1276 423420c4-83ab-492f-b58f-81f9feb106b5
2006-10-01 12:26:01 +00:00
Michael Gernoth
b7b4327927 move simple resample algorithm from rdpsnd_libao.c to rdpsnd_dsp.c to
provide a base for a better resample-algorithm


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1275 423420c4-83ab-492f-b58f-81f9feb106b5
2006-10-01 12:16:50 +00:00
Michael Gernoth
1ee09f6688 replace constants with their define
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1269 423420c4-83ab-492f-b58f-81f9feb106b5
2006-09-18 10:20:02 +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
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
45cc3f12f4 use correct types in rdpsnd_dsp_softvol
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1261 423420c4-83ab-492f-b58f-81f9feb106b5
2006-09-17 15:49:14 +00:00
Michael Gernoth
7ef82f75c7 unify audio-byteswapping as a dsp-function
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1259 423420c4-83ab-492f-b58f-81f9feb106b5
2006-09-17 15:25:10 +00:00
Michael Gernoth
8d590a7ba3 softvol only needs one buffer
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1258 423420c4-83ab-492f-b58f-81f9feb106b5
2006-09-17 15:08:48 +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