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
1
Question by Jaap Kreijkamp · Feb 20, 2010 at 01:47 PM · iphonemusiccompressed

memory usage of compressed audio playerback iphone

I apparently made the wrong assumption that compressed audio playback on iPhone would be streamed from 'disk' (okay, flash). Testing showed memory usage of is quite heavy (we have a long music track in our game). Is it possible to play .mp3 or .m4a audio files on iPhone without Unity loading it into memory first?

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
1
Best Answer

Answer by Jaap Kreijkamp · Feb 21, 2010 at 10:35 AM

The problem seems to be related to mp3 format, recompressing it from 3MB .mp3 to 900KB High Efficiency AAC .m4a solves it: Memory usage jumps back from 39.8MB to 20.6MB! Also binary is around 20MB or so smaller! It looks like Unity decided to store the mp3 as uncompressed (and thus loading it in memory). The mp3 was a 200kbps stereo track. Has anybody else have similar experiences?

It has possibly to do with that the asset is imported from Unity Pro, when I try to recreate the bug as stand-alone project it doesn't trigger the problem but seem to stream correctly. So, possibly a reimport of the asset or deleting the file and dropping again could have worked as well. Most important thing is, game is working and a step closer to release! (being excited starts to look really cool, warning, this youtube link is self-promotion, but just being happy this bug is solved that really made it difficult to run the app on a iPhone 3G).

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

No one has followed this question yet.

Related Questions

Calculating BPM (beats per minute) using InvokeRepeating() - Issue 2 Answers

iPhone pitch not working? 1 Answer

how to use ipodlibrary? 0 Answers

How to allow the user to choose a song from his/her own library to play in game? 2 Answers

Music resumes between levels on iPhone ( and not on android) 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