x


how to keep 1 audio listener

i am making a fps game and i have tons of different sound and noises and it says i have four audio listeners in the Please ensure there is always exactly one audio listener in the scene. how do i have one audio listers and still have different audio in the background

more ▼

asked Mar 22 '11 at 02:57 AM

andrew 3 gravatar image

andrew 3
93 4 5 11

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Only one AudioListener (not to be confused with AudioSource) should be enabled in the scene. The are by default attached to a camera. So make sure only one camera in your scene has an AudioListener attached. You can remove this component in the Inspector or disable it per script:

AudioListener.enabled = false;
more ▼

answered Mar 22 '11 at 04:28 AM

efge gravatar image

efge
5.1k 5 14 38

thanks it worked

Mar 22 '11 at 08:24 PM andrew 3
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1172
x1027
x446

asked: Mar 22 '11 at 02:57 AM

Seen: 2017 times

Last Updated: Mar 22 '11 at 02:57 AM