Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 Ulftek · Apr 01, 2019 at 01:07 PM · audiomusicvolumelooping

Music volume decreases after one loop

The background music for my game decreases significantly after one loop. Anyone have an idea why? I've poked around all of the settings I could think of.

Comment
Add comment · Show 7
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 Magso · Apr 01, 2019 at 03:57 PM 1
Share

Does this happen in the inspector preview as well?

avatar image Ulftek · Apr 01, 2019 at 04:43 PM 0
Share

Yes, it happens everywhere. And nothing that I've seen in the inspector changes when this happens. I don't have any scripts affecting audio beyond Play() and Stop().

avatar image Magso Ulftek · Apr 01, 2019 at 09:18 PM 1
Share

I can't tell if this is an issue with Unity or not, but because it happens on loop Unity does look like the culprit. Have you tried reimporting the audio files? Does this happen with every project? Does the volume decrease in relation to how loud it was previously?

avatar image Ulftek Magso · Apr 01, 2019 at 11:45 PM 0
Share

I've tried reimporting the audio file and that didn't work. I also took the audio file and saved it as an $$anonymous$$P3 (it was originally a WAV), and imported it. That didn't work either. None of my other projects do this. This is from the Space Shooter tutorial from Unity. I noticed this same behavior quite a while ago when I went through this tutorial before, but I overlooked it since I was very new to game development. I revisited this tutorial to try to reinforce some concepts when I noticed it again, and now I'd like to figure out what is going on.

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by godssalvation · Feb 23, 2020 at 08:06 PM

Hello,

I know it has been awhile since you posted your question and I see that you have somewhat discovered the solution, but perhaps this may help anyone else who may have encountered this issue. I cannot say for certain, but assuming that all of the settings are set as you expect; the most likely cause for this is that you have two audio sources playing the same audio, but only one is set to loop. When the second audio source drops out from the first time the clip reaches its end point, the volume virtually halves because if multiple audio sources play the same clip, then Unity handles it as an amplification. Using multiple Audio Sources to play the same clip can be interesting to have unique effects, but it is best to only have one audio source play a single clip unless for some reason you feel that the MAX volume of a single source still needs some extra boost. Anyways, I hope this helps to solve this issue for anyone who might have this specific issue. P.S. - in your instance, since you imported a project, I assume that you built an identical object with an identical audio source which is why the music continued to loop even though the loop box was unmarked (i.e. - after disabling the audio source that wasn't set to loop, the remaining active one that was set to loop played solo and therefore acted as expected)

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

137 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 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 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 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 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 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 avatar image avatar image avatar image avatar image avatar image

Related Questions

Why is my backtrack's volume getting lower? 0 Answers

Problem with seamless music looping in Unity 5 1 Answer

Audio slider for multiple scenes. 2 Answers

Decrease Volume 3 Answers

Separate Listeners for Sound FX and Music? 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