Audio no sound (Add asio support) #1570

Open
opened 2026-02-20 23:30:15 -05:00 by deekerman · 43 comments
Owner

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

  1. Connect to remote machine
  2. Play sound on remote machine
  3. Can't hear the played sound

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

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 1. Connect to remote machine 2. Play sound on remote machine 3. Can't hear the played sound ### 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_
Author
Owner

@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.

@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.
Author
Owner

@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

@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
Author
Owner

@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

@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
Author
Owner

@rustdesk commented on GitHub (Apr 13, 2023):

it is still old build, new build is ready 3 hours later.

@rustdesk commented on GitHub (Apr 13, 2023): it is still old build, new build is ready 3 hours later.
Author
Owner

@Just4Link commented on GitHub (Apr 14, 2023):

still no sound there :(

@Just4Link commented on GitHub (Apr 14, 2023): still no sound there :(
Author
Owner

@21pages commented on GitHub (Apr 14, 2023):

still no sound there :(

Which device is the controlled one, android or windows?

@21pages commented on GitHub (Apr 14, 2023): > still no sound there :( Which device is the controlled one, android or windows?
Author
Owner

@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): i control with a android phone my windows 10 machine ... anydesk runs fine with sound
Author
Owner

@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

@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
Author
Owner

@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.

@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.
Author
Owner

@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

@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
Author
Owner

@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.

@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.
Author
Owner

@Avi0n commented on GitHub (Apr 14, 2023):

Using nightly on both controlled and controller, I still cannot hear macOS audio.

  • Controlled: macOS with BlackHole set as Audio Input Device
  • Controller: Windows 11
@Avi0n commented on GitHub (Apr 14, 2023): Using nightly on both controlled and controller, I still cannot hear macOS audio. - Controlled: macOS with [BlackHole](https://github.com/ExistentialAudio/BlackHole) set as Audio Input Device - Controller: Windows 11
Author
Owner

@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.

@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.
Author
Owner

@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.

@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.
Author
Owner

@rustdesk commented on GitHub (Apr 14, 2023):

6 Channel 16 Bit 48000Hz

image

@21pages let us do #2

@rustdesk commented on GitHub (Apr 14, 2023): > 6 Channel 16 Bit 48000Hz ![image](https://user-images.githubusercontent.com/71636191/232179923-d53a3559-2c07-4ddb-a492-75bb74481df1.png) @21pages let us do #2
Author
Owner

@LaiYueTing commented on GitHub (Apr 17, 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.

Supported hosts:
  [Wasapi]
Available hosts:
  [Wasapi]
host_id: WASAPI
  Default Input Device:
    Some("耳麥式麥克風 (Astro MixAmp Pro Voice)")
  Default Output Device:
    Some("耳機 (Astro MixAmp Pro Game)")
  Devices:
  1. "耳麥式耳機 (Astro MixAmp Pro Voice)"
    Default output stream config:
      SupportedStreamConfig { channels: 2, sample_rate: SampleRate(48000), buffer_size: Range { min: 0, max: 4294967295 }, sample_format: F32 }
    All supported output stream configs:
      1.1. SupportedStreamConfigRange { channels: 2, min_sample_rate: SampleRate(48000), max_sample_rate: SampleRate(48000), buffer_size: Range { min: 0, max: 4294967295 }, sample_format: F32 }
  2. "耳機 (Astro MixAmp Pro Game)"
    Default output stream config:
      SupportedStreamConfig { channels: 6, sample_rate: SampleRate(48000), buffer_size: Range { min: 0, max: 4294967295 }, sample_format: F32 }
    All supported output stream configs:
      2.1. SupportedStreamConfigRange { channels: 6, min_sample_rate: SampleRate(48000), max_sample_rate: SampleRate(48000), buffer_size: Range { min: 0, max: 4294967295 }, sample_format: F32 }
  3. "耳麥式麥克風 (Astro MixAmp Pro Voice)"
    Default input stream config:
      SupportedStreamConfig { channels: 1, sample_rate: SampleRate(48000), buffer_size: Range { min: 0, max: 4294967295 }, sample_format: F32 }
    All supported input stream configs:
      3.1. SupportedStreamConfigRange { channels: 1, min_sample_rate: SampleRate(48000), max_sample_rate: SampleRate(48000), buffer_size: Range { min: 0, max: 4294967295 }, sample_format: F32 }
  4. "線路 (Astro MixAmp Pro Game)"
    Default input stream config:
      SupportedStreamConfig { channels: 2, sample_rate: SampleRate(48000), buffer_size: Range { min: 0, max: 4294967295 }, sample_format: F32 }
    All supported input stream configs:
      4.1. SupportedStreamConfigRange { channels: 2, min_sample_rate: SampleRate(48000), max_sample_rate: SampleRate(48000), buffer_size: Range { min: 0, max: 4294967295 }, sample_format: F32 }
@LaiYueTing commented on GitHub (Apr 17, 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. ``` Supported hosts: [Wasapi] Available hosts: [Wasapi] host_id: WASAPI Default Input Device: Some("耳麥式麥克風 (Astro MixAmp Pro Voice)") Default Output Device: Some("耳機 (Astro MixAmp Pro Game)") Devices: 1. "耳麥式耳機 (Astro MixAmp Pro Voice)" Default output stream config: SupportedStreamConfig { channels: 2, sample_rate: SampleRate(48000), buffer_size: Range { min: 0, max: 4294967295 }, sample_format: F32 } All supported output stream configs: 1.1. SupportedStreamConfigRange { channels: 2, min_sample_rate: SampleRate(48000), max_sample_rate: SampleRate(48000), buffer_size: Range { min: 0, max: 4294967295 }, sample_format: F32 } 2. "耳機 (Astro MixAmp Pro Game)" Default output stream config: SupportedStreamConfig { channels: 6, sample_rate: SampleRate(48000), buffer_size: Range { min: 0, max: 4294967295 }, sample_format: F32 } All supported output stream configs: 2.1. SupportedStreamConfigRange { channels: 6, min_sample_rate: SampleRate(48000), max_sample_rate: SampleRate(48000), buffer_size: Range { min: 0, max: 4294967295 }, sample_format: F32 } 3. "耳麥式麥克風 (Astro MixAmp Pro Voice)" Default input stream config: SupportedStreamConfig { channels: 1, sample_rate: SampleRate(48000), buffer_size: Range { min: 0, max: 4294967295 }, sample_format: F32 } All supported input stream configs: 3.1. SupportedStreamConfigRange { channels: 1, min_sample_rate: SampleRate(48000), max_sample_rate: SampleRate(48000), buffer_size: Range { min: 0, max: 4294967295 }, sample_format: F32 } 4. "線路 (Astro MixAmp Pro Game)" Default input stream config: SupportedStreamConfig { channels: 2, sample_rate: SampleRate(48000), buffer_size: Range { min: 0, max: 4294967295 }, sample_format: F32 } All supported input stream configs: 4.1. SupportedStreamConfigRange { channels: 2, min_sample_rate: SampleRate(48000), max_sample_rate: SampleRate(48000), buffer_size: Range { min: 0, max: 4294967295 }, sample_format: F32 } ```
Author
Owner

@Coldblackice commented on GitHub (Apr 19, 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.

No sound for me, either, and I've tried nearly every nightly version for the past couple months:

Supported hosts:
  [Wasapi]
Available hosts:
  [Wasapi]
host_id: WASAPI
  Default Input Device:
    None
  Default Output Device:
    Some("Speakers (High Definition Audio Device)")
  Devices:
  1. "Speakers (High Definition Audio Device)"
    Default output stream config:
      SupportedStreamConfig { channels: 2, sample_rate: SampleRate(48000), buffer_size: Range { min: 0, max: 4294967295 }, sample_format: F32 }
    All supported output stream configs:
      1.1. SupportedStreamConfigRange { channels: 2, min_sample_rate: SampleRate(48000), max_sample_rate: SampleRate(48000), buffer_size: Range { min: 0, max: 4294967295 }, sample_format: F32 }
@Coldblackice commented on GitHub (Apr 19, 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. No sound for me, either, and I've tried nearly every nightly version for the past couple months: ``` Supported hosts: [Wasapi] Available hosts: [Wasapi] host_id: WASAPI Default Input Device: None Default Output Device: Some("Speakers (High Definition Audio Device)") Devices: 1. "Speakers (High Definition Audio Device)" Default output stream config: SupportedStreamConfig { channels: 2, sample_rate: SampleRate(48000), buffer_size: Range { min: 0, max: 4294967295 }, sample_format: F32 } All supported output stream configs: 1.1. SupportedStreamConfigRange { channels: 2, min_sample_rate: SampleRate(48000), max_sample_rate: SampleRate(48000), buffer_size: Range { min: 0, max: 4294967295 }, sample_format: F32 } ```
Author
Owner

@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)

@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](https://github.com/21pages/rustdesk/commit/47856be95ee7e8e9b81589aa8dd22e73eb4b3fcd) I think one possible reason is encoding/decoding failure, otherwise we should hear some noise, hope someone can dig it. https://github.com/rustdesk/rustdesk/blob/f7db94587cb5ddc483ab4dc8820c7b6f06ff27ec/src/server/audio_service.rs#L388 https://github.com/rustdesk/rustdesk/blob/f7db94587cb5ddc483ab4dc8820c7b6f06ff27ec/src/client.rs#L879
Author
Owner

@LaiYueTing 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)

https://pastebin.com/iGS2hBZv
https://pastebin.com/iXYt9FZn

@LaiYueTing 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](https://github.com/21pages/rustdesk/commit/75534936efceb5eaa7c842f791a6e6a16eda9796) I think one possible reason is encoding/decoding failure, otherwise we should hear some noise, hope someone can dig it. > > https://github.com/rustdesk/rustdesk/blob/f7db94587cb5ddc483ab4dc8820c7b6f06ff27ec/src/server/audio_service.rs#L388 > > > https://github.com/rustdesk/rustdesk/blob/f7db94587cb5ddc483ab4dc8820c7b6f06ff27ec/src/client.rs#L879 https://pastebin.com/iGS2hBZv https://pastebin.com/iXYt9FZn
Author
Owner

@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)

https://pastebin.com/iGS2hBZv https://pastebin.com/iXYt9FZn

2023-04-20T03:25:51.687961200+08:00 audio_service play sample_rate_0:48000, sample_rate:48000
2023-04-20T03:25:51.700352300+08:00 audio_service play ok sample_format: F32
2023-04-20T03:25:51.703995300+08:00 build_input_stream data callback data len: 2880, lock len:2880, encode_len:2880
2023-04-20T03:25:51.705443400+08:00 send_f32 AUDIO_ZERO_COUNT 0
2023-04-20T03:25:51.706142600+08:00 send_f32 encode_vec_float err Error { function: "opus_encode_float", code: BadArg }

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): > > 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](https://github.com/21pages/rustdesk/commit/75534936efceb5eaa7c842f791a6e6a16eda9796) I think one possible reason is encoding/decoding failure, otherwise we should hear some noise, hope someone can dig it. > > https://github.com/rustdesk/rustdesk/blob/f7db94587cb5ddc483ab4dc8820c7b6f06ff27ec/src/server/audio_service.rs#L388 > > > > https://github.com/rustdesk/rustdesk/blob/f7db94587cb5ddc483ab4dc8820c7b6f06ff27ec/src/client.rs#L879 > > https://pastebin.com/iGS2hBZv https://pastebin.com/iXYt9FZn > 2023-04-20T03:25:51.687961200+08:00 audio_service play sample_rate_0:48000, sample_rate:48000 2023-04-20T03:25:51.700352300+08:00 audio_service play ok sample_format: F32 2023-04-20T03:25:51.703995300+08:00 build_input_stream data callback data len: 2880, lock len:2880, encode_len:2880 2023-04-20T03:25:51.705443400+08:00 send_f32 AUDIO_ZERO_COUNT 0 2023-04-20T03:25:51.706142600+08:00 send_f32 encode_vec_float err Error { function: "opus_encode_float", code: BadArg } In this first log, the host have 6 channels(from calculation), but encoder can only be created with one or two channels. https://github.com/rustdesk/rustdesk/blob/a797e4e47def45e3dbec3c74905729ca90a58d55/src/server/audio_service.rs#L273 https://github.com/xiph/opus/blob/8cf872a186b96085b1bb3a547afd598354ebeb87/src/opus_encoder.c#L521
Author
Owner

@21pages commented on GitHub (Apr 19, 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.

No sound for me, either, and I've tried nearly every nightly version for the past couple months:

Supported hosts:
  [Wasapi]
Available hosts:
  [Wasapi]
host_id: WASAPI
  Default Input Device:
    None
  Default Output Device:
    Some("Speakers (High Definition Audio Device)")
  Devices:
  1. "Speakers (High Definition Audio Device)"
    Default output stream config:
      SupportedStreamConfig { channels: 2, sample_rate: SampleRate(48000), buffer_size: Range { min: 0, max: 4294967295 }, sample_format: F32 }
    All supported output stream configs:
      1.1. SupportedStreamConfigRange { channels: 2, min_sample_rate: SampleRate(48000), max_sample_rate: SampleRate(48000), buffer_size: Range { min: 0, max: 4294967295 }, sample_format: F32 }

How many channels are there on the other end ?

@21pages commented on GitHub (Apr 19, 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. > > No sound for me, either, and I've tried nearly every nightly version for the past couple months: > > ``` > Supported hosts: > [Wasapi] > Available hosts: > [Wasapi] > host_id: WASAPI > Default Input Device: > None > Default Output Device: > Some("Speakers (High Definition Audio Device)") > Devices: > 1. "Speakers (High Definition Audio Device)" > Default output stream config: > SupportedStreamConfig { channels: 2, sample_rate: SampleRate(48000), buffer_size: Range { min: 0, max: 4294967295 }, sample_format: F32 } > All supported output stream configs: > 1.1. SupportedStreamConfigRange { channels: 2, min_sample_rate: SampleRate(48000), max_sample_rate: SampleRate(48000), buffer_size: Range { min: 0, max: 4294967295 }, sample_format: F32 } > ``` How many channels are there on the other end ?
Author
Owner

@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

@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](https://github.com/21pages/rustdesk/commit/61f2f4e4a6fd4e0a0cf669e06a6fe8fb40e31fdf)
Author
Owner

@LaiYueTing 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

https://pastebin.com/d4xC07eb
https://pastebin.com/PnJ30wSu

I can hear the sound now!

@LaiYueTing 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](https://github.com/21pages/rustdesk/commit/61f2f4e4a6fd4e0a0cf669e06a6fe8fb40e31fdf) https://pastebin.com/d4xC07eb https://pastebin.com/PnJ30wSu I can hear the sound now!
Author
Owner

@test2a commented on GitHub (Jun 25, 2023):

[2023-06-25 10:12:53.514372 +05:30] INFO [src/common.rs:172] clipboard update found on client
[2023-06-25 10:17:09.438885 +05:30] INFO [src/common.rs:172] clipboard update found on client
[2023-06-25 10:18:29.094237 +05:30] INFO [src/common.rs:172] clipboard update found on client
[2023-06-25 10:21:39.221245 +05:30] INFO [src/common.rs:172] clipboard update found on client
[2023-06-25 10:28:23.476917 +05:30] DEBUG [libs/hbb_common/src/config.rs:418] Configuration path: /home/user/.config/rustdesk/RustDesk_default.toml
[2023-06-25 10:28:23.578801 +05:30] INFO [src/ipc.rs:515] pa monitor: "alsa_output.pci-0000_03_00.6.analog-stereo.monitor"
[2023-06-25 10:28:23.585840 +05:30] ERROR [src/ipc.rs:285] Failed to start ipc_pa server at path /tmp/RustDesk/ipc_pa: Address already in use (os error 98)
[2023-06-25 10:28:23.586160 +05:30] ERROR [src/ipc.rs:555] Failed to start pa ipc server: Address already in use (os error 98)
[2023-06-25 10:28:23.701742 +05:30] ERROR [src/ipc.rs:537] Failed to send audio data:Broken pipe (os error 32)
[2023-06-25 10:28:23.740054 +05:30] INFO [src/flutter.rs:771] Session 421231539 start, render by flutter texture rgba plugin
[2023-06-25 10:28:24.067545 +05:30] INFO [src/client.rs:273] rendezvous server: rs-sg.rustdesk.com:21116
[2023-06-25 10:28:24.068758 +05:30] INFO [src/client.rs:290] #1 punch attempt with 192.168.1.6:39143, id: 421231539
[2023-06-25 10:28:30.070070 +05:30] INFO [src/client.rs:290] #2 punch attempt with 192.168.1.6:39143, id: 421231539
[2023-06-25 10:28:42.070792 +05:30] INFO [src/client.rs:290] #3 punch attempt with 192.168.1.6:39143, id: 421231539
[2023-06-25 10:29:00.072351 +05:30] INFO [src/client/io_loop.rs:829] sync transfer job status

@rustdesk i got these logs.

@test2a commented on GitHub (Jun 25, 2023): ``` [2023-06-25 10:12:53.514372 +05:30] INFO [src/common.rs:172] clipboard update found on client [2023-06-25 10:17:09.438885 +05:30] INFO [src/common.rs:172] clipboard update found on client [2023-06-25 10:18:29.094237 +05:30] INFO [src/common.rs:172] clipboard update found on client [2023-06-25 10:21:39.221245 +05:30] INFO [src/common.rs:172] clipboard update found on client [2023-06-25 10:28:23.476917 +05:30] DEBUG [libs/hbb_common/src/config.rs:418] Configuration path: /home/user/.config/rustdesk/RustDesk_default.toml [2023-06-25 10:28:23.578801 +05:30] INFO [src/ipc.rs:515] pa monitor: "alsa_output.pci-0000_03_00.6.analog-stereo.monitor" [2023-06-25 10:28:23.585840 +05:30] ERROR [src/ipc.rs:285] Failed to start ipc_pa server at path /tmp/RustDesk/ipc_pa: Address already in use (os error 98) [2023-06-25 10:28:23.586160 +05:30] ERROR [src/ipc.rs:555] Failed to start pa ipc server: Address already in use (os error 98) [2023-06-25 10:28:23.701742 +05:30] ERROR [src/ipc.rs:537] Failed to send audio data:Broken pipe (os error 32) [2023-06-25 10:28:23.740054 +05:30] INFO [src/flutter.rs:771] Session 421231539 start, render by flutter texture rgba plugin [2023-06-25 10:28:24.067545 +05:30] INFO [src/client.rs:273] rendezvous server: rs-sg.rustdesk.com:21116 [2023-06-25 10:28:24.068758 +05:30] INFO [src/client.rs:290] #1 punch attempt with 192.168.1.6:39143, id: 421231539 [2023-06-25 10:28:30.070070 +05:30] INFO [src/client.rs:290] #2 punch attempt with 192.168.1.6:39143, id: 421231539 [2023-06-25 10:28:42.070792 +05:30] INFO [src/client.rs:290] #3 punch attempt with 192.168.1.6:39143, id: 421231539 [2023-06-25 10:29:00.072351 +05:30] INFO [src/client/io_loop.rs:829] sync transfer job status ``` @rustdesk i got these logs.
Author
Owner

@Avey777 commented on GitHub (Sep 13, 2023):

V1.2.2 no sound

@Avey777 commented on GitHub (Sep 13, 2023): V1.2.2 no sound
Author
Owner

@rustdesk commented on GitHub (Sep 21, 2023):

/bounty $100

@rustdesk commented on GitHub (Sep 21, 2023): /bounty $100
Author
Owner

@algora-pbc[bot] commented on GitHub (Sep 21, 2023):

💎 $100 bounty • RustDesk

Steps to solve:

  1. Start working: Comment /attempt #3762 with your implementation plan
  2. Submit work: Create a pull request including /claim #3762 in the PR body to claim the bounty
  3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

Thank you for contributing to rustdesk/rustdesk!

Add a bountyShare on socials

@algora-pbc[bot] commented on GitHub (Sep 21, 2023): ## 💎 $100 bounty [• RustDesk](https://console.algora.io/org/rustdesk) ### Steps to solve: 1. **Start working**: Comment `/attempt #3762` with your implementation plan 2. **Submit work**: Create a pull request including `/claim #3762` in the PR body to claim the bounty 3. **Receive payment**: 100% of the bounty is received 2-5 days post-reward. [Make sure you are eligible for payouts](https://docs.algora.io/bounties/payments#supported-countries-regions) Thank you for contributing to rustdesk/rustdesk! **[Add a bounty](https://console.algora.io/org/rustdesk/bounties/community?fund=rustdesk%2Frustdesk%233762)** • **[Share on socials](https://twitter.com/intent/tweet?text=%24100+bounty%21+%F0%9F%92%8E+https%3A%2F%2Fgithub.com%2Frustdesk%2Frustdesk%2Fissues%2F3762&related=algoraio)**
Author
Owner

@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.

@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.
Author
Owner

@rustdesk commented on GitHub (Dec 23, 2023):

I get audio with the built in audio driver, but none of the Asio options.

What does this mean? is Asio good or not good for you?

@rustdesk commented on GitHub (Dec 23, 2023): > I get audio with the built in audio driver, but none of the Asio options. What does this mean? is Asio good or not good for you?
Author
Owner

@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:

  • I keep the remote Windows System audio output at Digital Audio (High-Def) - no speakers connected here.
  • I keep all software, audio interface, etc running into VoiceMeeter.
  • Route the output of Voicemeeter into a DDMF virtual audio cable (which is WDC)
  • Route the virtual audio cable into the Windows input/microphone
  • In the properties of the virtual cable Advanced tab, "Listen to this device" needs to be on, and point to the default Windows output.

Tested just now from my Android 12 Go Edition $40 tablet into Windows 10 Pro machine.
RustDesk is awesome.

@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: - I keep the remote Windows System audio output at Digital Audio (High-Def) - no speakers connected here. - I keep all software, audio interface, etc running into VoiceMeeter. - Route the output of Voicemeeter into a DDMF virtual audio cable (which is WDC) - Route the virtual audio cable into the Windows input/microphone - In the properties of the virtual cable Advanced tab, "Listen to this device" needs to be on, and point to the default Windows output. Tested just now from my Android 12 Go Edition $40 tablet into Windows 10 Pro machine. RustDesk is awesome.
Author
Owner

@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.

@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.
Author
Owner

@bomzj commented on GitHub (Apr 6, 2024):

No sound on control pc (win 11) coming from remote win 10.

@bomzj commented on GitHub (Apr 6, 2024): No sound on control pc (win 11) coming from remote win 10.
Author
Owner

@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.

@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.
Author
Owner

@rustdesk commented on GitHub (Aug 5, 2024):

https://forum.rme-audio.de/viewtopic.php?id=32751

@rustdesk commented on GitHub (Aug 5, 2024): https://forum.rme-audio.de/viewtopic.php?id=32751
Author
Owner

@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

@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
Author
Owner

@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

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.

Supported hosts:
  [Wasapi]
Available hosts:
  [Wasapi]
host_id: WASAPI
  Default Input Device:
    Some("FrontMic (Realtek High Definition Audio)")
  Default Output Device:
    Some("扬声器 (Realtek High Definition Audio)")
  Devices:
  1. "扬声器 (Realtek High Definition Audio)"
    Default output stream config:
      SupportedStreamConfig { channels: 2, sample_rate: SampleRate(48000), buffer_size:
 Range { min: 0, max: 4294967295 }, sample_format: F32 }
    All supported output stream configs:
      1.1. SupportedStreamConfigRange { channels: 2, min_sample_rate: SampleRate(48000)
, max_sample_rate: SampleRate(48000), buffer_size: Range { min: 0, max: 4294967295 }, s
ample_format: F32 }
  2. "FrontMic (Realtek High Definition Audio)"
    Default input stream config:
      SupportedStreamConfig { channels: 2, sample_rate: SampleRate(48000), buffer_size:
 Range { min: 0, max: 4294967295 }, sample_format: F32 }
    All supported input stream configs:
      2.1. SupportedStreamConfigRange { channels: 2, min_sample_rate: SampleRate(48000)
, max_sample_rate: SampleRate(48000), buffer_size: Range { min: 0, max: 4294967295 }, s
ample_format: F32 }
@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 > 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. ``` Supported hosts: [Wasapi] Available hosts: [Wasapi] host_id: WASAPI Default Input Device: Some("FrontMic (Realtek High Definition Audio)") Default Output Device: Some("扬声器 (Realtek High Definition Audio)") Devices: 1. "扬声器 (Realtek High Definition Audio)" Default output stream config: SupportedStreamConfig { channels: 2, sample_rate: SampleRate(48000), buffer_size: Range { min: 0, max: 4294967295 }, sample_format: F32 } All supported output stream configs: 1.1. SupportedStreamConfigRange { channels: 2, min_sample_rate: SampleRate(48000) , max_sample_rate: SampleRate(48000), buffer_size: Range { min: 0, max: 4294967295 }, s ample_format: F32 } 2. "FrontMic (Realtek High Definition Audio)" Default input stream config: SupportedStreamConfig { channels: 2, sample_rate: SampleRate(48000), buffer_size: Range { min: 0, max: 4294967295 }, sample_format: F32 } All supported input stream configs: 2.1. SupportedStreamConfigRange { channels: 2, min_sample_rate: SampleRate(48000) , max_sample_rate: SampleRate(48000), buffer_size: Range { min: 0, max: 4294967295 }, s ample_format: F32 } ```
Author
Owner

@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.

@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.
Author
Owner

@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.

@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.
Author
Owner

@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.

@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.
Author
Owner

@rustdesk commented on GitHub (Mar 6, 2025):

At first I had no sound, and it said it couldn't find the sound card. Later I turned off the 3.5mm jack detection in the Realtak sound console and reconfigured the interface audio.

@rustdesk commented on GitHub (Mar 6, 2025): > At first I had no sound, and it said it couldn't find the sound card. Later I turned off the 3.5mm jack detection in the Realtak sound console and reconfigured the interface audio.
Author
Owner

@newteawillbegood commented on GitHub (Oct 5, 2025):

Restart the rustdesk works for me.

@newteawillbegood commented on GitHub (Oct 5, 2025): Restart the rustdesk works for me.
Author
Owner

@congzhangzh commented on GitHub (Oct 28, 2025):

Restart the rustdesk works for me.

I always login by NoMachine and run rust in the user session by hand

#!/bin/bash
sudo killall rustdesk 
export PULSE_LATENCY_MSEC=15 
export PIPEWIRE_LATENCY=512/48000
rustdesk
@congzhangzh commented on GitHub (Oct 28, 2025): > Restart the rustdesk works for me. I always login by NoMachine and run rust in the user session by hand ```bash #!/bin/bash sudo killall rustdesk export PULSE_LATENCY_MSEC=15 export PIPEWIRE_LATENCY=512/48000 rustdesk ```
Author
Owner

@congzhangzh commented on GitHub (Oct 28, 2025):

Restart the rustdesk works for me.

I always login by NoMachine and run rust in the user session by hand

#!/bin/bash
sudo killall rustdesk
export PULSE_LATENCY_MSEC=15
export PIPEWIRE_LATENCY=512/48000
rustdesk

I can see the pulse server environment variable in user session, but maybe rust desk can not find it when run as a service

set|grep -i pulse
#I get some thing like PULSE_SERVER=tcp:127.0.0.1:30xx
@congzhangzh commented on GitHub (Oct 28, 2025): > > Restart the rustdesk works for me. > > I always login by NoMachine and run rust in the user session by hand > > #!/bin/bash > sudo killall rustdesk > export PULSE_LATENCY_MSEC=15 > export PIPEWIRE_LATENCY=512/48000 > rustdesk I can see the pulse server environment variable in user session, but maybe rust desk can not find it when run as a service ```bash set|grep -i pulse #I get some thing like PULSE_SERVER=tcp:127.0.0.1:30xx ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/rustdesk-rustdesk#1570
No description provided.