Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 JoBrindley · Jan 10, 2013 at 06:35 PM · soundmusicstereoscopicstereo

Using stereo sound

I'm wanting to have an object that emits a sound, but so that it gets louder the closer you get to it, and that when the character moves, the sound changes depending on the direction you're facing. so when it's on their left, the sound will be louder out of the left headphone. I've made an object and attached an audio source to it, and made my character an audio listener. but that's as far as I've got. Been trying to mess around with the settings, but no luck so far. Help would be really appreciated.

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Julien-Lynge · Jan 10, 2013 at 07:00 PM

You need to go to the import settings for your audio clip, and make sure the box for 3D sound is checked. Then, simple place the audio source in scene where the sound should be coming from, and Unity will take care of all the directionality and volume. You can tweak the parameters in the Audiosource; for instance, the falloff determines how quickly the volume drops as you move away from the source.

Comment
Add comment · Show 6 · 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 JoBrindley · Jan 10, 2013 at 07:18 PM 0
Share

That's what I thought, but for some reason nothing happens. I have checked the box that says it's 3D, and messed around with the settings, but still nothing. I can hear the sound the same no matter where my player is. Would there be any reason why it wouldn't be working?

avatar image Julien-Lynge · Jan 10, 2013 at 07:24 PM 0
Share

What are the settings for $$anonymous$$ and max distance? It's possible that you simply aren't moving the character far enough to hear a change in volume. Try taking down the max distance a bit.

When you turn the character, do you hear the sound in the correct ear? What are your settings for pan and spread? You may want to just include a screenshot.

avatar image JoBrindley · Jan 10, 2013 at 07:43 PM 0
Share

I've got my settings really low. I can see on the graph that it should be getting quieter, but no matter where I am, it's the same volume. And the sound is co$$anonymous$$g out of both headphones like it's not 3D even though it is. I would attach a screenshot, but for some reason my computer won't let me

avatar image JoBrindley · Jan 10, 2013 at 07:49 PM 0
Share

I've just got it to stop playing the music depending on how far away I am. I put the 'pan' and 'spread' settings right up. But it's still not making a difference to the direction of the object.

avatar image Julien-Lynge · Jan 10, 2013 at 08:12 PM 0
Share

Ideally, Pan level should be 1 and spread should be 0. If you take spread up, you'll have sound bleed into the other ear. When you look at the clip in the audiosource, does it say that it's a 3D sound or a 2D sound? How are you playing the sound?

Show more comments

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

9 People are following this question.

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

Related Questions

How do i add/import sound effects and/or music into my game? 5 Answers

Why Doesn't My Music Loop? 5 Answers

How to keep music playing when android screen is turned off (or locked)? 0 Answers

iOS music player & youtube mutes sound in app 0 Answers

How to have audio only be heard in a certain radius? 4 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