Why can't I hear sound in godot projects and editor?

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

Hello group. Having a lot of troubles recently with audio playing in both the editor and the project when playing a scene.

onready var sound_fx:AudioStreamPlayer=get_node(“sound_fx”)
if (Input.is_action_just_pressed(“fire”)):

currently the sound does not play in editor, but the audio graph thing (master Bus) has detected the sound when I try to test the sound file.

also my soundcard is fine as it plays everything else and I have unchecked “exclusive mode”. This originally happened in my current project and now it has started in my previous projects. Hoping for some help on this one brains trust

edit I have tried exporting the projects and the sound works ingame so this problem only occurs when testing the soundfile in the editor or testing the scene.

:bust_in_silhouette: Reply From: Gluon

Any additional audiostream node will play through the master so do you have either mute or the volume turned down on either the sound_fx node or the master node? The master would still detect the sound but it wouldnt play if that was the case.

no the mute is not activated nor is the volume turned down. I’m in the middle of a tutorial through a book series and when I added the sound file it went from only hearing while in editor to not hearing it in the editor then not hearing any sound from any previous projects.
Is there a setting I am missing and where would it be?

I’m looking at the master bus in audio tab and it seems pretty normal to me, but I am very new at this (2 years coding and only three months godot experience).

I thought maybe it was a bug or something as I cannot find any audio options that would fix this.

Thanks for the quick reply.

jsongeredu | 2023-01-29 01:00

Thats very unusual, I have never personally heard of that happening before. I would suggest try downloading godot again, you can keep all the files in your various projects and add them to the new godot so you wont lose them. Worth backing the files up somewhere first just in case though. if the new download of godot works correctly you can re add your projects at the project screen and see if the problem persists.

Gluon | 2023-01-29 09:44

believe it or not, this has solved the problem. Downloaded and ran the newest version 3.5.1 and all the projects were already there and it all started working again. thanks for the help

jsongeredu | 2023-01-29 11:04

Glad it worked for you, odd error you had there but alls well that ends well!

Gluon | 2023-01-29 11:58