Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by byurocks23 · Mar 08, 2014 at 03:48 AM · audioaudiosourcecomponentaudiolistener3d sound

Need help with 3d sound

I am having problems with adding 3d sound to my game. This is my first time and I am learning as I go so it is probably an obvious answer. What i did was I added the audio source component to a gameObject and added audio listener to another gameObject. I didn't change any of the settings accept I set the max distance of the auido source so that it didn't reach the audio listener. When I test it I always hear the sound even though the max distance source doesn't reach my listener. I've tested if the 3d effects work and it seems they do. I've come to the conclusion that the 3d works, but the sound gets played in the backround regardless of how I set the settings. I can't remove the background noise without disabling the 3d sound. I'm completely lost.

extra information: My game is 2d and the audio clip is attached to sprites.

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image fifthknotch · Mar 08, 2014 at 03:50 AM 1
Share

$$anonymous$$ake sure your sound file is not marked as 2D

avatar image byurocks23 · Mar 08, 2014 at 03:57 AM 0
Share

It I have it set to 3d.

2 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by fifthknotch · Mar 08, 2014 at 04:04 AM

3D sound does not stop at the max distance if you are using logarithmic rolloff (the default volume rolloff on the audio source component). Change that to linear rolloff or create a custom rolloff and this should solve your problem.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image byurocks23 · Mar 08, 2014 at 04:07 AM 0
Share

That was exactly my problem

avatar image fifthknotch · Mar 08, 2014 at 04:08 AM 0
Share

Awesome! Glad to help.

avatar image
0

Answer by Firedan1176 · Mar 08, 2014 at 05:48 AM

I think the better question is what are you trying to accomplish? Is the audio listener going to be moving? Make sure on the audio clip in your assets folder is set to a 3D sound. Under the audio source in the inspector, there should be settings with a graph for the distance. Make sure that's also accustomed. Sorry if this didn't help. I still don't see how this would be causing issues. If you tell me what you're trying to go for, I may be able to help in another alternative.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

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

Answers Answers and Comments

22 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Audio not playing well on AudioListener move 1 Answer

Real time audio source on audio listener.... 0 Answers

Audio: -3db automatic attenuation on any audio playing? 0 Answers

GetSpectrumData or equivalent in non-realtime mode? 2 Answers

For the spectrum data for the return value of GetSpectrumData 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges