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 DannyB · Sep 26, 2013 at 04:55 PM · iosbugsoundstutterios7

Sound stutters and stops when coming back from background (iOS 7)

I have spent a significant part of the last few days trying to debug this, but I believe I can now confirm with a high degree of certainty that there is a problem with Unity sound on iOS 7.

This is what is happening:

When you have a Unity game with music playing, and you send it to the background and open it again, the sound stutters for a second or two, and in some cases (about 1 of 10) it stops completely and the only way to bring it back is by repeating the process.

I was able to confirm this with a completely bare bones Unity project (which I have sent as a bug report) and, to my surprise (and relief) I was able to reproduce it on another Unity game I happen to have on my device.

The stuttering is happening only on sound files that are set to "Stream from Disk", but the other issue where the sound is lost completely happens also with "Compressed in Memory"

I can accept and understand the stutter, but the bug that causes sound to completely disappear is a more serious one (I believe they are related).

Has anyone else experienced this problem, and if so, is there a workaround?
Or - if Unity guys are reading this, is it known and there is a fix on the way?


Reproduction Case:

  1. Create an audio source from MP3 file, set it to Stream from Disk

  2. Add it as to an audio source in a scene, set it to auto play and loop.

  3. Deploy the project to iOS 7 device (tested on iPad 2 and Mini)

  4. Open the game on the device, you should hear the music

  5. Minimize it to the background and open it back again.

  6. You should hear the sound stutter and sometimes stops completely. In a heavier, real life project, this stops more often than in this demo project.

If you do not hear the stutter right away, try one of these variations:

  1. Minimize to background and open again faster, OR

  2. Minimize to background, open any other app, close it and reopen the game.

Related: Forums thread

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 jeffweber · Oct 16, 2013 at 01:35 AM 0
Share

I'm having this exact same problem (music is lost on soft exit and restart) and I have the latest XCode verison. Did you ever find a workaround for this?

avatar image DannyB · Oct 16, 2013 at 04:10 AM 0
Share

No workaround, it seems to be a bug, Unity are aware of it. If you can also submit a bug report I guess it could only improve the chances for a fix in the next build.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by andykscott · Sep 27, 2013 at 06:56 PM

Hi! We had the same problem, and resolved it by upgrading to the latest version of Xcode.

Comment
Add comment · Show 4 · 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 DannyB · Sep 28, 2013 at 06:18 AM 0
Share

Already using Xcode 5

avatar image jason-yi-kai · Oct 27, 2013 at 11:09 PM 0
Share

Hi DannyB, I'm having the same problem... and I just update to xcode5, but it didn't resolve the sound issue. Just wonder have you found a solution to fix this yet?

$$anonymous$$any Thanks

avatar image DannyB · Oct 28, 2013 at 06:36 AM 0
Share

Not yet. See the forum thread - it seems to be a reproducible Unity bug, so not much to do other than wait for a fix I guess.

avatar image jason-yi-kai · Oct 28, 2013 at 08:29 PM 0
Share

Thanks for the reply Danny. :) And Hope they will fix it for the next update. Cheers

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

18 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

Related Questions

IOS 9 - Sound is not working. 0 Answers

Game skips frames when a sound is played on iOS 0 Answers

Text rendering bug. Shows black squares. -1 Answers

iOS 2d game some sprites artifatcs on edges 1 Answer

I can not build for IOS simulator 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