#Audio problem for Giggity

1 messages · Page 1 of 1 (latest)

elfin bear
#

You sure no script is modifying the audio source ?

odd geode
#

How would i check this? Im almost positive this is the only script in the whole scene

elfin bear
#

I hope your Player window is not on Mute. Also, while the scene is playing, check the AudioSource from the hierarchy check the clip field in the inspector. Should not be empty while playing, also check other configs there.

Maybe make a button that calls audioSource.Play() where audioSource is an instance of the AudioSource in the scene. This way you can debug it properly.

odd geode
elfin bear
#

Check clip length

#

Change clip.

#

I don't see a reason for it to not work if other scenes are working.

#

HOLD ON

#

Due you have an Audio Listener in the scene ?

#

It's a component that's attached to the Camera by default but double check if there's an AudioListener in the scene

#

Search the component name in the Hierarchy window.

#

@odd geode

odd geode
#

Audio listener is in the scene and active and in same world space position as the sounds since they are children of the object

odd geode
#

@elfin bear i tried adding a button playing the audio source and the button successfully calls the method but doesn't play the audio

#

The audio length are all between .8 and 2 seconds

elfin bear
#

Is it possible to send only the relevant(remove irrelevant dependencies) parts of the project?:
the scene, audio clip and the script specifically.

odd geode
#

You mean send it to u?

elfin bear
#

Yes,
But
You can also try making a new scene and adding just an audio source, audio listener, clip.

(do you have any error in the console ?)

odd geode
#

Created a new scene and the sound plays just fine there

#

There's no errors in console for the main scene

elfin bear
#

remake that buggy scene

odd geode
#

🤨 i just unchecked then rechecked the audio listener and the audio all worked

#

Then i tried to play the game and the sound in that scene stopped working again

odd geode
#

Idk what the problem was but i basically copy and pasted everything to a new scene and it works