Audio most of the times won't play on editor

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By LozGamez

I tried to play audios on the editor but it wont work, even when playing the project from the editor it won’t work. When I export as .exe it worked, but in the editor no audio works.
Even trying to just play the audio without putting into the scene doesn’t works.
I tried to download godot again and still not working, with or without headphones.
Edit: Already tried with WAV MP3 and OGG

What is your audio file type?

Asthmar | 2023-02-23 17:51

Sorry, forgot to mention, I already tried with WAV MP3 and OGG.

LozGamez | 2023-02-23 17:52

Ok just making sure. One more thing, did you try exporting with audacity? In the past, I had this issue, and using audacity fixed it.

Asthmar | 2023-02-23 17:56

Actually in the .exe exported the audio works perfectly, just in the godot editor it wont work

LozGamez | 2023-02-23 17:58

I meant exporting the audio with the audacity software then try using it in godot

Asthmar | 2023-02-23 18:04

Tried now, still nothing.

LozGamez | 2023-02-23 18:11

I know this might sound simplistic but on your master and audiostream player you do have the volume set high enough right? If either of them are set to 0 then it will be muted.

Gluon | 2023-02-25 10:27

Yes, my audiostream is at the maximum dB.
By master you mean the windows volume? Because if it is then yes, is at the maximum also.

LozGamez | 2023-02-27 13:34

When you create an audiostream you should have two audio buses present. The audio bus for the new audiostream and the master audio bus. All sound goes through the master audio bus so if this is muted there will be no sound, different audio buses can be connected in different ways so you could have one audio bus which gives a warble effect and another audio bus playing music and then you can either pass it through the warble audio bus or not to change the sound of the music. All sound goes through the master audio bus though. Documentation is here Audio buses — Godot Engine (stable) documentation in English

Gluon | 2023-02-27 13:38

Really didn’t have seen this “audio” tab yet, but saddly wasn’t the problem I think, I played around with all the configurations and volumes there but still nothing.
It’s probably just a very stupid thing that I don’t known about, I’m still very newbie to this.

Screenshot 2023-02-27 105343.png - Google Drive

Screenshot 2023-02-27 105216.png - Google Drive

LozGamez | 2023-02-27 13:54

In your second screenshot there is the playback time record, when it is playing you should see the blue line moving from left to right. Does this happen?

Gluon | 2023-02-27 18:00

Yes, and the bars from the master buse goes up and down, normally like its playing.
The weirder is that when I build the game, running trought the .exe the sound plays, but in the editor it doesn’t

LozGamez | 2023-02-27 18:04

Yeah thats pretty weird, the only other thing I can suggest is try redownloading the godot editor to see if something got corrupted in the download. A bit extreme but it seems to me that it is all working correctly and the only thing I can think is that there is something wrong with the bus trying to connect. Sorry I cannot give any better advice than that, if you copy the files in the folder out to a different folder on your computer to be safe this will safeguard your game but you should find when you redownload the editor that the game files remain and you can reconnect to them in a project.

Gluon | 2023-02-27 18:09

The editor and exe have different volume sliders in the windows volume mixer, I know this is silly but have you checked if your Godot project slider is muted? the project slider only shows in windows while the project is running from the editor.

Asthmar | 2023-02-27 18:50

Jesus, volume mixer was the problem!!!
Sorry for this sillyness of my part.

Thanks a lot @Asthmar!

Also thanks everyone helping!

LozGamez | 2023-02-27 19:25

Ur welcome, Glad that was it, happened to me in the past also!

Asthmar | 2023-02-27 19:38

:bust_in_silhouette: Reply From: LozGamez

Volume mixer has a separate volume for godot, it was muted by default there.

1 Like