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

AudioDriverWASAPI error while using editor if another application is using exclusive mode #18732

Open
Tracked by #76797
Toshiwoz opened this issue May 9, 2018 · 19 comments

Comments

@Toshiwoz
Copy link
Contributor

Toshiwoz commented May 9, 2018

Godot version:
3.0.3 RC1

OS/device including version:
Windows 10, not related to video, apparently.

Issue description:
I have used the editor for a while and never got this error before, I haven't even used the audio features, yet this error message seems to be related to the audio:

ERROR: AudioDriverWASAPI::thread_func: WASAPI: GetCurrentPadding error
   At: drivers\wasapi\audio_driver_wasapi.cpp:533

Steps to reproduce:
Unkown

Minimal reproduction project:
unkonwn

@vnen
Copy link
Member

vnen commented May 9, 2018

cc @marcelofg55

@marcelofg55
Copy link
Contributor

@Toshiwoz Hi, it happens everytime? Whats your soundcard?

@Toshiwoz
Copy link
Contributor Author

Toshiwoz commented May 10, 2018 via email

@marcelofg55
Copy link
Contributor

So if you don't use Netflix there is no problem? If so then it's probably requesting exclusive access to the soundcard.

@Toshiwoz
Copy link
Contributor Author

Yeah, I can confirm that now, I opened Godot editor, my current project. No error.
Then I open Netflix, the moment I start playing a video, Godot starts to log that error.
I wonder why the Netflix app does that strange thing (should I report that to them then?).

@marcelofg55
Copy link
Contributor

Yes, you could try to contact them since we can't do much if an external application requests WASAPI exclusive mode. They could switch to shared mode and that will solve the issue.

@Toshiwoz
Copy link
Contributor Author

I've been told it's how it is suposed to work, by the netflix support, lol..
Should I close this?

@akien-mga
Copy link
Member

akien-mga commented May 25, 2018

I guess we could try to improve the error message, but we can't prevent thirdparty apps from abusing the audio driver :)

@marcelofg55 Would there be an easy way to catch this source of error and print an understandable error?
Like "The WASAPI audio interface could not be initialized, due to the soundcard being used by another application in exclusive mode."

@marcelofg55
Copy link
Contributor

Yeah, we should definitely improve the error messages for this so that it's more clear. But I think we won't be able to tell if another application that uses exclusive mode is actually the problem, afaik WASAPI funtions simply return AUDCLNT_E_DEVICE_INVALIDATED when this happens.

@benthillerkus
Copy link

benthillerkus commented Sep 1, 2018

I'm getting this error too; I am not using Netflix nor listening to any music.
ERROR: thread_func: WASAPI: GetCurrentPadding error
At: drivers/wasapi/audio_driver_wasapi.cpp:533

@marcelofg55
Copy link
Contributor

I'm getting this error too; I am not using Netflix nor listening to any music.
ERROR: thread_func: WASAPI: GetCurrentPadding error
At: drivers/wasapi/audio_driver_wasapi.cpp:533

Happens every time you run godot? Or is it random? And what soundcard you're using?

@Toshiwoz
Copy link
Contributor Author

Toshiwoz commented Sep 1, 2018

It may happen also with any other program that takes full control of the sound card.
What I did was to remove the exclusive control of the program over the audio card... I don't remember where the setting is, there, in the image, try by unchecking "Allow applications to take exclusive control of this device".
imagen

@benthillerkus
Copy link

Removing the exclusive mode rights stopped this behavior, I think, it's def not happening anymore rn and that's the only thing I've changed

@matthieudesprez
Copy link

Thanks, it did fix the error for me as well.

To access the settings on windows 10:

  • right click the sound icon on the bottom right
  • click on Sounds
  • go on Playback tab
  • select your audio device and click on Properties
  • then you can go on Advanced tab and disable exclusive mode

@jitspoe
Copy link
Contributor

jitspoe commented Jul 31, 2019

Also getting this. Windows 8.1. Certainly happens opening some sort of sound application like Sound Forge, but I've had it happen pretty regularly just doing basic stuff like web browsing, though tough to say exactly what caused it. I often have Godot open in the background and come back to see it spamming this nonstop. Updated line number on 3.1.1:

 ERROR: thread_func: WASAPI: GetCurrentPadding error
   At: drivers/wasapi/audio_driver_wasapi.cpp:646

Might be nice to, at the very least, avoid spamming the error. Best case would be to attempt to grab access of to the sound device again, maybe after a short delay.

@KoBeWi
Copy link
Member

KoBeWi commented Aug 24, 2020

Can anyone still reproduce this bug in Godot 3.2.3 rc4 or any later release?

@jitspoe
Copy link
Contributor

jitspoe commented Aug 25, 2020

Can confirm it still happens in 3.2.3 rc4. I can repro it by simply opening godot to the project manager then launching VEGAS Pro, Sound Forge, or any other program that tries to take exclusive control of the sound card.

@vcprocles
Copy link

Stumbled upon this issue when playing music in the music player with exclusive mode to bypass all extra audio effects. The extra thing I got is a memory leak, but that could be related to all the logging (I got almost a million messages accumulated).

@Calinou Calinou changed the title AudioDriverWASAPI error while using editor, no audio feature used AudioDriverWASAPI error while using editor if another application is using exclusive mode Aug 3, 2023
@kamtar
Copy link

kamtar commented Feb 5, 2024

somebody has a hot-fix for this? I would like to listen to Tidal the way I'm used to without rendering Godot unusable.

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