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 Ewanuk · Mar 24, 2013 at 06:11 PM · audiosoundunity 4sfx

Audio Crackling in Unity 4 - Possibly related to adjusting volume at run-time

I'm trying to figure out why I'm getting so much audio crackling in Unity 4.

Our project is working on a PC/Mac/Linux Build with a decent 60+ framerate but all sounds (mostly SFX) have a heavy amount of crackling to them. Since FMOD was used after unity 2.5 (something like that) I haven't seen other complaints.

So I believe the issue is related to adjusting the volume of sound sources directly in the game at run-time (Is this bad practice?), disabling these features seemed to help a bit, but there is still noticeable cracking.

Any ideas why this is happening?

Comment
Add comment · Show 12
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 Loius · Mar 24, 2013 at 06:15 PM 0
Share

This is gonna sound silly, but have you played the sounds in another player, like VLC or W$$anonymous$$P, to make sure they're not actually just krackly naturally?

I personally haven't encountered crackly sounds, and I have adjustable sound volume in a current project. What method are you using to adjust the volume? Perhaps there's something in that which is introducing noise.

avatar image Ewanuk · Mar 24, 2013 at 06:23 PM 0
Share

Yep, those are all fine, even when played through the editor.

Swapped out other SFX to ensure it's not a corrupted asset, same result.

I'm adjusting the volume via a C# script by storing a reference to the AudioSource component playing the source and adjusting it's volume property every frame. The idea is to make the volume of the source correlate with the amount of a certain resource (in this case, air in their oxygen tank. $$anonymous$$ore air = louder volume)

avatar image Ewanuk · Apr 01, 2013 at 03:32 AM 0
Share

Also, I've tried changing the priorities of certain sounds to 0 to see if low channels are the issue, but no, still crackling even on a single sound with priority 0.

avatar image Loius · Apr 01, 2013 at 04:18 AM 0
Share

The only other thing I know of is to change the bitrate in the audio file's import settings in Unity itself. You could probably use some information panel in Audacity to deter$$anonymous$$e the file's bitrate and then set that in Unity.

avatar image Tarlius · Apr 01, 2013 at 06:10 AM 0
Share

Are you telling the sources to change position to try and loop them, or looping sounds?

Did you also check the compression quality?

I do fadein/fadeouts in my game in the same way and have experienced no problems so far.

Show more comments

0 Replies

· Add your reply
  • Sort: 

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

14 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

Related Questions

Audio controls disabled??! 0 Answers

Audio not coming out of speakers 1 Answer

How do I play a sound when pressing the W key, and when I stop pressing the W key, the sound stops? 2 Answers

Why does sound on Android play at double speed and crackle? 3 Answers

Calculating rhythm of any music? 3 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