Why can't I hear my audio?

I am attempting to add music to my game and after being annoyed with scripts not working, I just dragged my audio clip onto on an object in my game. I still cant hear my audio when I play the game in the editor or in the actual game. Can anyone help me get the sound to work?

For anyone as NOOB as I am ….

there’s a teeny tiny button on the top bar of the Game view called “Mute Audio.” Make sure that’s not depressed. :smiley:

I had the same problem 10 minutes ago.
Close all programs that use your soundcard (Audacity, Cubase, FL Studio…)
Save your scene, close and reopen Unity.

If still no sounds type in CMD : services.msc
then check for “Audio Windows” or “Windows Audio” → Right click → Restart the service.

You need an AudioSource to play the sound. If the music is a sound track, click the sound and uncheck the field 3D - this makes it a 2D sound, which plays independently of position. You can select any scene object (the camera, for instance) and click Component/Audio/AudioSource to add an AudioSource to it. Set the field Clip to the audio clip you want to play, and check Loop and Play On Awake - with these settings, the music starts playing when the game begins and loops forever, and no script is needed.

If you are reading this while having your Quest 2 connected, that’s why the sound is not playing on your computer, lost one hour debugging this…

this may sound like a stupid answer but are you sure if it’s just on an object it’s too far to hear? try placing it on the camera

I was having this problem with a sound for use in a GUI. Aldonaletto’s point of making sure that the sound was not checked as a 3d sound resolved my issue. Simple oversight, but hard to track down in your code. (since that is not where the issue is)

I just had this problem and this comment helped:
“CMD : services.msc then check for “Audio Windows” or “Windows Audio” → Right click → Restart the service.”

Try placing the camera or may be you are having a bugged version of software