- Home /
Can't hear any audio in play mode, but can in inspector.
Hey,
So I've just been testing some playthroughs of a musical game I'm working on. I used playmode to test about 30-40 times in a row and all was fine and then suddenly the audio just stopped playing when I hit play. I checked in the inspector and in the project and I could still play and hear the audio source and I also checked other sounds on my PC to check it wasn't outside of Unity.
So I did some googling etc and tried a bunch of things including:
restarting Unity
restarting the computer
disabling and restarting window audio
reverting the cloud save back to a point where audio was 100% working.
remaking the audiosource
starting a new project and placing an audiosource in the scene and testing
testing different audio files and filetypes in a new project
Nothing has helped. I've even opened other projects from the past that I know the audio was working when I left and it now isn't.
So from what I can gather, this must be a Unity based issue, but not relevant to the project itself. It doesn't seem to matter what audio I use, project I'm in etc, my audio just now globally does not work in playmode in any project.
Any help would be hugely appreciated. Thanks in advance.
Did you ever get an answer to this? - experiencing the same issue. I can actually play the audio in a scene in Edit mode but then when going to play it's off (and it's not muted). Very weird.
Answer by dorusoftware · Jan 03, 2021 at 01:17 PM
there is an icon with a speaker in the unity ui over the editor scene window. maybe that could fix it
Thanks - yes, this icon plays the ambient sound in Edit mode itself (good) and it shows the sound is working. However, this doesn't seem to affect play mode. As soon as I enter play mode it cuts the sound. When I leave play mode I sometimes get a second of squeaking sound so something is there.
I'm close to the sound source so that shouldn't be the issue and the sound is not muted. Sound level (from stats is -74DB so that just above audile, but there's nothing. It also doesn't change as I move around and the sound in the sound source is set to 1.
I did restart the editor a couple of times, but still a bit baffled at the moment!
Answer by njyxster · Jan 03, 2021 at 07:21 PM
Ok - big mea culpa on my part. Somehow the Audio listeners in the scene got disabled and I didn't realize. The obvious result: no sound output X-/. Thanks in any case @dorusoftware!
Your answer
Follow this Question
Related Questions
3D Platform Tutorial Start Missing Mesh in the Scene 1 Answer
Walking sound Help 2 Answers
A GameObject is missing in GameView 3 Answers
5.1 Channels is backwards in unity (non 3D) 0 Answers
completely lost noob 1 Answer