Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

1
[Help] Huge memory load from copying iOS music library file to audioclip for audiosource
Author Summary
sheentheanonymous is in help
Post Body

Hi, Im having a big problem with loading iOS music library songs into my game. I use the audio data to create a waveform and for playback and other triggers during gameplay.

I'm exporting a song from iOS music library to the app's local directory using a custom plugin. After that's done, I'm using unity's WWW class to copy the file from the directory. Till this point, nothing much happens with the memory. The problem is when I load the WWW class result to an actual audioclip. Here, things get out of control. It goes from 20~25mb to over 100-200mb.

Typical song file size is 5-15mb

Any ideas how to fix this process or any other processes for achieving the same result would be very helpful.

I appreciate any feedback. Thanks!

Author
Account Strength
90%
Account Age
12 years
Verified Email
Yes
Verified Flair
No
Total Karma
3,829
Link Karma
3,737
Comment Karma
92
Profile updated: 2 days ago
Posts updated: 5 days ago

Subreddit

Post Details

Location
We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
9 years ago