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 holman8er · Apr 19, 2012 at 04:04 PM · audioinconsistentchoppydistorted

Choppy audio

I'm using GetButtonUp to trigger random audio when an interactive game object is clicked. The random audio clips that play are 2D sounds (uncompressed, but small). It seems to work fine when clicking on the interactive object the vast majority of the time, however, about every 20-30 clicks, the audio that plays is extremely choppy.

Has anybody experienced this kind of audio inconsistency within Unity? All of my audio clips play fine within the inspector, just not always in the game itself. I was going to attempt changing the DSP Buffer size, however, I would prefer not to give up performance in an attempt to fix this small inconsistency. Any help/suggestions as to how I can correct this would be greatly appreciated!! Thank you.

Comment
Add comment · Show 5
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 gregzo · Apr 19, 2012 at 04:12 PM 1
Share

1)How do you play the clips? PlayOneShot or Play? 2)Are your clips looped? 3)How long are they? You say small, how small? 4)How quickly do these 30 clicks have to happen before you get the choppiness? 5)Choppy: you mean clicks? Is a previous clip still heard and just the newly played one is choppy?

Sorry for the many questions! It would help to know more...

avatar image holman8er · Apr 20, 2012 at 03:10 PM 0
Share

Gregzo, Sorry for the lack of detail. -I'm using Playmaker. It's a simple fsm that gets a mouse pick event, then sends an event once clicked. -In that (clicked) state, I'm using an "Audio Play" action (it's not set to one shot). -The clips are all set as a 2D sound, and the audio source that they come out of is not set to loop. -The random audio clips are anywhere from .6 to 2.3 seconds and the largest one is 322kb. -These clicks are slow, as it allows for the first audio clip to finish playing before the mouse pick event can be sent again. Therefore, the previous clip is not being heard since it finished. -By choppiness, I mean the opposite of clear... the audio is garbled and distorted... sorry I can't articulate any better than that!

Thank you for your help, I hope this is a bit more clear.

avatar image droderick · Apr 20, 2012 at 03:38 PM 0
Share

what version of unity are you running? We've experienced some chopping/popping of audio with on-board soundcards and earlier versions of unity. The stuff we experience before may be fixed in newer versions. Also, have you tested the build on multiple machines? what os's, etc.?

avatar image holman8er · Apr 20, 2012 at 05:32 PM 0
Share

We're running version 3.5.1. We have not yet upgraded to 3.5.2 as we're in the middle of a deadline. We've have been testing on multiple machines (all of them alienware or dell) running windows 7.

avatar image gregzo · Apr 20, 2012 at 09:35 PM 0
Share

Are all your clips wav's? All clip import settings set to load in memory and not stream from disk? What is your latency setting? Which platform are ypu building to? And last but not least: how does Playmaker implement "Audio Play " action? If it implements it with PlayOmeShot, that could (emphasis on COULD) be part of the problem.

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Buggy Reverb Zones (Reverb with No Dry) 1 Answer

3D Audio Source plays choppy/poping in web player (Video) 1 Answer

Inconsistent ReverbZone / AudioSource.volume behavior 2 Answers

Music Choppy and Weird 0 Answers

fixing choppy animation when using itween 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