mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-02 19:26:56 -05:00
Audio no sound (Add asio support) #1570
Labels
No labels
bug
documentation
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
question
unreproducible
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/rustdesk-rustdesk#1570
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @LaiYueTing on GitHub (Mar 24, 2023).
Bug Description
When I connect to remote machines, I am unable to hear the audio playback from those machines.
I have enabled the following settings in my playback device:
Default device: Astro MixAmp Pro Game
Default communication device: Astro MixAmp Pro Voice
If the default device is set to Astro MixAmp Pro Game, I will not be able to hear the audio playback from remote machines. However, if the default device is set to Astro MixAmp Pro Voice, I will be able to hear the audio playback from remote machines. Even if I use the default High Definition Audio Device, I can still hear the audio playback from remote machines.
Even if I directly configure the audio input device in RustDesk, it does not work.
It is important to note that when using other remote desktop connections (such as AnyDesk, Teamviewer, etc.), I am able to hear the audio playback from remote machines.
The only way to fix this issue is by changing the Windows playback device settings.
However, due to some reasons, I do not want to switch to other audio input devices to resolve this problem.
I am looking for a better solution to fix this issue.
How to Reproduce
Expected Behavior
I should hear the sound as I do with AnyDesk / Teamviewer connect remote machines.
Operating system(s) on local side and remote side
Windows 10 22H2, Windows 11 22H2
RustDesk Version(s) on local side and remote side
1.1.9, 1.2.0 Nightly Build
Screenshots
No screenshots
Additional Context
No response
@Just4Link commented on GitHub (Apr 11, 2023):
Same issue here ... i have running a docker server instance where my pc (win10 and rustdesk 1.1.9) and my smartphone (from playstore) connected.... i cant hear on the android phone no playback from audio ... in anydesk the audio works in comparison.
@rustdesk commented on GitHub (Apr 13, 2023):
Please try out the nightly build tomorrow.
https://github.com/rustdesk/rustdesk/releases/tag/nightly
controlled side is affected
@hellblue commented on GitHub (Apr 13, 2023):
i tried the nightly
from win 10 22H2 to win 10 22H2 no sound
from android to win 10 i hear sound
from win 10 22H2 to win 11 22H2 i can hear sound
from win 10 22H2 to linux debian i can hear sound
@rustdesk commented on GitHub (Apr 13, 2023):
it is still old build, new build is ready 3 hours later.
@Just4Link commented on GitHub (Apr 14, 2023):
still no sound there :(
@21pages commented on GitHub (Apr 14, 2023):
Which device is the controlled one, android or windows?
@Just4Link commented on GitHub (Apr 14, 2023):
i control with a android phone my windows 10 machine ... anydesk runs fine with sound
@Just4Link commented on GitHub (Apr 14, 2023):
when i control the android phone audio wont work too ... i gave all the access control but no sound from android ... so both ways make problems
@LaiYueTing commented on GitHub (Apr 14, 2023):
I have been using the latest nightly build version on my end, but there haven't been any changes.
@hellblue commented on GitHub (Apr 14, 2023):
inside my lan i have now sound between all devices i will try if it works also outside my lan next week on my laptop at work
@rustdesk commented on GitHub (Apr 14, 2023):
No luck then, we will wait for anothor our Windows to reproduce no sound problem. android side is in low priority.
@Avi0n commented on GitHub (Apr 14, 2023):
Using nightly on both controlled and controller, I still cannot hear macOS audio.
@LaiYueTing commented on GitHub (Apr 14, 2023):
Just to add on, the default format for the Default device - Astro MixAmp Pro Game is 6 Channel 16 Bit 48000Hz, and the default format for the Default communication device - Astro MixAmp Pro Voice is 2 Channel 16 Bit 48000Hz. I'm not sure if this is related to the issue.
Also, when other remote devices connect to my computer, they can't hear any sound.
By the way, currently my audio device is connected to my PC via USB → ASTRO MixAmp Pro TR → speakers and headphone/microphone.
@21pages commented on GitHub (Apr 14, 2023):
https://github.com/21pages/test/releases/download/test/cpal_enumerate.exe
This program enumerates audio device config, maybe we can get some clue from it.
@rustdesk commented on GitHub (Apr 14, 2023):
@21pages let us do #2
@LaiYueTing commented on GitHub (Apr 17, 2023):
@Coldblackice commented on GitHub (Apr 19, 2023):
No sound for me, either, and I've tried nearly every nightly version for the past couple months:
@21pages commented on GitHub (Apr 19, 2023):
https://github.com/21pages/test/releases/download/test/rustdesk-1.2.0-x86_64_audio_no_sound_log_to_D_log_txt.exe
The program can log on the two computers, the log is in D:/log.txt, you can look at the log against this commit
I think one possible reason is encoding/decoding failure, otherwise we should hear some noise, hope someone can dig it.
github.com/rustdesk/rustdesk@f7db94587c/src/server/audio_service.rs (L388)github.com/rustdesk/rustdesk@f7db94587c/src/client.rs (L879)@LaiYueTing commented on GitHub (Apr 19, 2023):
https://pastebin.com/iGS2hBZv
https://pastebin.com/iXYt9FZn
@21pages commented on GitHub (Apr 19, 2023):
In this first log, the host have 6 channels(from calculation), but encoder can only be created with one or two channels.
github.com/rustdesk/rustdesk@a797e4e47d/src/server/audio_service.rs (L273)github.com/xiph/opus@8cf872a186/src/opus_encoder.c (L521)@21pages commented on GitHub (Apr 19, 2023):
How many channels are there on the other end ?
@21pages commented on GitHub (Apr 20, 2023):
https://github.com/21pages/test/releases/download/test/rustdesk-1.2.0-x86_64_audio_rechannel_log_to_D_log_txt.exe
This program will do audio rechannel on both sides, ranging from 1 to 8, replace old programs with channel numbers greater than 2, read log again this commit
@LaiYueTing commented on GitHub (Apr 20, 2023):
https://pastebin.com/d4xC07eb
https://pastebin.com/PnJ30wSu
I can hear the sound now!
@test2a commented on GitHub (Jun 25, 2023):
@rustdesk i got these logs.
@Avey777 commented on GitHub (Sep 13, 2023):
V1.2.2 no sound
@rustdesk commented on GitHub (Sep 21, 2023):
/bounty $100
@algora-pbc[bot] commented on GitHub (Sep 21, 2023):
💎 $100 bounty • RustDesk
Steps to solve:
/attempt #3762with your implementation plan/claim #3762in the PR body to claim the bountyThank you for contributing to rustdesk/rustdesk!
Add a bounty • Share on socials
@eddiemorris commented on GitHub (Dec 23, 2023):
How can we add Cpal with Asio to Rustdesk?
https://github.com/RustAudio/cpal
I get audio with the built in audio driver, but none of the Asio options.
@rustdesk commented on GitHub (Dec 23, 2023):
What does this mean? is Asio good or not good for you?
@eddiemorris commented on GitHub (Dec 24, 2023):
I use Asio exclusively - my default Windows output is routed into VoiceMeeter, where I can mix multiple streams of audio, then out to speakers. I used Teamviewer to capture the Asio audio from VoiceMeeter on the Remote computer: I could control it, get its Asio stream, and hear it from my computer.
I just figured out a workaround, that has a few steps:
Tested just now from my Android 12 Go Edition $40 tablet into Windows 10 Pro machine.
RustDesk is awesome.
@rustdesk commented on GitHub (Dec 24, 2023):
Thanks @eddiemorris we will add asio support on Windows in the future.
To date 2024-02-14, we do not start yet. Please do not ask when.
@bomzj commented on GitHub (Apr 6, 2024):
No sound on control pc (win 11) coming from remote win 10.
@Karbust commented on GitHub (Apr 11, 2024):
Not sound between Windows 11 machines (control and remote).
I'm on version 1.2.3-2.
Used to work when controlling Windows 10 from Windows 11.
@rustdesk commented on GitHub (Aug 5, 2024):
https://forum.rme-audio.de/viewtopic.php?id=32751
@sierra2600 commented on GitHub (Sep 8, 2024):
If I may add this in here, I've had this issue between Windbows to Windbows, Arch Linux to Windbows, Windbows to Debian Linux, and Arch Linux to Debian Linux both on local networks and over the internet, it's worse so over the internet but it's not limited to RustDesk either
I've been finding that if I go into the "Display Settings" button in the session that I'd like to have audio from and check "Mute" then uncheck it, that is usually when I will get sound again
I know, a subtle inconvenience but I've had this issue on other programs as well where I had to do the same similar thing, the classic usual addage still applies to just about everything now "Hello, IT. Have you tried turning it off and back on again?" (sorry, I... couldn't resist)
Sometimes I'm not able to get the audio to go at all especially when it's over the internet, it's asking a lot when these programs are already trying their best to maintain a connection to each other and attempt to hand over real time images even if they're set to be at an "Optimize reaction time" quality over even some to most of the time a bottlenecked connection be it from network usage or ISP paywall restrictions
@AquaHarp commented on GitHub (Dec 8, 2024):
My side: Win11 23H2
Remote side: Win8.1
Both computers installed Rustdesk 1.3.5
Can't hear the sound from Win8.1 device
@fauxnik commented on GitHub (Feb 12, 2025):
Client: Win10Pro 22H2
Remote: macOS 11.7.10 (Big Sur)
Both running RestDesk 1.3.7 (56)
Client can't hear sound playing on Remote.
@ld892012 commented on GitHub (Feb 26, 2025):
I have the same problem but without using ASIO, in any sound card, if I set the depth bit to more than 16 bits, audio is not transmitted.
@DeniseSkidmore commented on GitHub (Mar 1, 2025):
We were able to get it working by changing the input sound setting and putting the setting back to system sound again.
@rustdesk commented on GitHub (Mar 6, 2025):
@newteawillbegood commented on GitHub (Oct 5, 2025):
Restart the rustdesk works for me.
@congzhangzh commented on GitHub (Oct 28, 2025):
I always login by NoMachine and run rust in the user session by hand
@congzhangzh commented on GitHub (Oct 28, 2025):
I can see the pulse server environment variable in user session, but maybe rust desk can not find it when run as a service