Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opening the program makes my desktop audio start popping due to adb running in the background #74779

Open
Tracked by #76797
ShawkMusic opened this issue Mar 11, 2023 · 4 comments

Comments

@ShawkMusic
Copy link

Godot version

v4.0.stable.official [92bee43]

System information

Arch Linux

Issue description

Normally, my system audio (Pipewire 1:0.3.66-2) sounds fine. As soon as I open Godot, my entire desktop audio starts to sound crackly. (even if im just, say, watching a youtube video or something and happen to have Godot open). As soon as I close Godot, my audio goes right back to normal.

This doesn't seem to happen in the project manager, only when I actually open a project.

Steps to reproduce

  1. Listen to computer audio (it sounds fine). I like to use this video https://www.youtube.com/watch?v=xGXYFJmvIvk because it's just the exact same sound consitently with no breaks so if i hear any crackles or breaks or pauses I know it's not just the video's audio
  2. Open Godot project manager and then open a project.
  3. Listen to the video again. Now it keeps stuttering every second or so
  4. Close Godot
  5. Listen again. Now it's fine

Minimal reproduction project

N/A

@Calinou
Copy link
Member

Calinou commented Mar 13, 2023

Are you using a Bluetooth headset or speakers with microphone enabled? Due to a hardware limitation, audio quality must be decreased in this situation (output is also forced to mono).

@SilentByte
Copy link

I am facing the same issue running on Pop!_OS 22.04 LTS x86_64 with both Godot 4 and 3.5. I am NOT using Bluetooth speakers.

Here are some observations:

  • As soon as I open the Godot editor the audio starts crackling.
  • As soon as I close Godot, the crackling stops.
  • The popping is very noticeable when playing audio from an external program while Godot is running, but it also happens when playing music from within Godot.
  • If there is no audio playing, there is no popping.
  • When running the game without the Godot editor, there is no popping.
  • Running Godot with --audio-driver Dummy does not prevent popping.
  • Even when Godot is in the background/not being used, popping still occurs.
  • Godot is the only application I use that causes this issue. I experience no popping otherwise.
  • Changing process priority to high/very high does not help.

@matmas
Copy link

matmas commented Mar 16, 2023

I am experiencing similar issue with v4.0.1.rc1.official [d23922f] on Arch Linux even when started with --headless option after opening any project even empty.

Interestingly the issue persists even after closing Godot but is gone right after terminating process adb which seems to be the culprit at least in my case.

Setting export/android/android_sdk_path editor setting to empty also prevents adb from starting which might help mitigate the issue.

@ShawkMusic
Copy link
Author

Are you using a Bluetooth headset or speakers with microphone enabled? Due to a hardware limitation, audio quality must be decreased in this situation (output is also forced to mono).

I have a Bluetooth headset but it also happens when they're disconnected and audio is playing through my monitor's speakers, as well as when the headphones are plugged through aux.

I am experiencing similar issue with v4.0.1.rc1.official [d23922f] on Arch Linux even when started with --headless option after opening any project even empty.

Interestingly the issue persists even after closing Godot but is gone right after terminating process adb which seems to be the culprit at least in my case.

Setting export/android/android_sdk_path editor setting to empty also prevents adb from starting which might help mitigate the issue.

Interesting. Setting the android_sdk_path to empty also seems to have fixed it for me, although, as I said before, just closing Godot fixed it for me, without the need to kill the adb process in the task manager. It seems Godot automatically kills adb for me but not for him. Anyway, it seems like adb might have something to do with this. As soon as I readded the path to the android_sdk_path field, it immediately started happening again.

@Calinou Calinou changed the title Opening the program makes my desktop audio start popping Opening the program makes my desktop audio start popping due to adb running in the background Mar 16, 2023
@Calinou Calinou added this to the 4.x milestone Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants