Bug 220298

Summary: RDP sound redirection does not work properly
Product: [Applications] krdc Reporter: Marc Schiffbauer <mschiff>
Component: RDPAssignee: Urs Wolfer <uwolfer>
Status: RESOLVED NOT A BUG    
Severity: normal CC: kde-multimedia
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Marc Schiffbauer 2009-12-27 18:41:33 UTC
Version:           4.3.85 (using Devel)
OS:                Linux
Installed from:    Compiled sources

When the RDP sound redirection is enabled on a windows RDP host, sounds generated within the RDP session will be replayed on the client computer (over the wire).

This does not work properly with krdc. All you can hear is some noise whenever some sound is sent to the client.

I checked using rdesktop with the "-r sound" option from a console directly which works perfectly so its NOT my sound setup, rdesktop or the remote (RDP) session causing this problem.
Comment 1 Marc Schiffbauer 2009-12-27 18:43:01 UTC
I forgot to mention that other KDE sounds work properly (KDE login sound for example)
Comment 2 Urs Wolfer 2009-12-27 19:37:02 UTC
This shoulds really strange to me. KRDC does nothing more that setting the rdesktop option "-r sound:remote". Are you sure you have tried exactly that when you have started rdesktop from Konsole?
Comment 3 Marc Schiffbauer 2009-12-27 20:11:17 UTC
I am using "-r sound:local" or just "-r sound" which both work perfectly.

I do not know if -r sound:remote works as my server does not have any speakers...
Comment 4 Marc Schiffbauer 2009-12-27 20:59:48 UTC
Even stranger:

I now created a desktop shortcut that starts rdesktop with the same options as I started it from the console and if I use that the sound is "buggy" too.

Entering the same command as mentioned under "Exec" below it is all working. I verified that several times now.

user@host ~ $ cat Desktop/Verknüpfung\ zu\ Programm.desktop
[Desktop Entry]
Comment[de]=
Comment=
Exec=rdesktop -u winuser -g 1650x900 -r sound:local w2k3
GenericName[de]=
GenericName=
Icon=krdc
MimeType=
Name[de]=w2k3
Name=w2k3
Path=
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=
Comment 5 Marc Schiffbauer 2009-12-27 21:11:21 UTC
The only difference that I can spot right now is:

As soon as rdesktop is started through KDE somehow it does not work properly.

=> through krdc -> broken
=> through kdeinit4 (Desktop Icon) -> broken
=> through krunner (Alt+F2) -> broken

=> directly from shell in "konsole" -> perfectly

Any Idea what part of KDE might be causing these kind of issues?
Comment 6 Marc Schiffbauer 2009-12-27 23:57:05 UTC
Additional info:

=> using the desktop Icon mentioned in the comment before under xfce -> WORKS!
=> using grdesktop (the gnome krdc equivalent) -> WORKS!
Comment 7 Urs Wolfer 2009-12-28 21:40:02 UTC
Thank you very much for your great investigations! :)

It sounds really strange to me, but most probably something in KDE does "wrap" the sound... I have really no idea in this topic; I need to ask someone who knows more about that.

Btw, something related to this issue:
http://sourceforge.net/tracker/?func=detail&atid=381350&aid=1826036&group_id=24366
Comment 8 Marc Schiffbauer 2010-02-01 15:11:20 UTC
Any news on this? The bug is still present in 4.4RC2

TIA
Comment 9 Urs Wolfer 2010-02-01 19:53:59 UTC
No news. CC'ing kde-multimedia maling list; probably somebody there could help? I have absolutely no idea about it...
Comment 10 Marc Schiffbauer 2010-06-26 11:29:43 UTC
Still broken in kde 4.4.90
Comment 11 Urs Wolfer 2012-12-30 11:43:42 UTC
KRDC will use freerdp instead of rdesktop starting KDE SC 4.11. Hopefully this issue is fixed there - otherwise please report it again.