- Home /
Using MediaExporter to save to MP3
I am using the new MediaExporter functionality in the U3DXT plugin to save tracks selected from the iTunes library on an iOS 7 device.
However, I need to be able to then load the saved media file and assign it to an AudioSource. I can do this for files in the library that are already in MP3 format, but I can't do it for most of the tracks since they are in M4A format.
Is there any API I can use in U3DXT to always convert or save the file as an MP3 file? If not, is this something you could consider adding since it would be massively useful to anyone working with the media player libraries.
Thanks for any suggestions or help.
Emm. Isn't this the only way to get support for the U3DXT components? Not very good if it is.
Answer by u3dxt · Apr 23, 2014 at 01:48 AM
Hi, sorry for the late response. We did some research and this would be a difficult task for us as we are not audio experts. What we did with the existing U3DXT API to export was to call native iOS APIs, which exports to the audio in the same format but not convert. There are native libraries that encode/convert between audio formats such as LAME (http://lame.sourceforge.net/), but compiling on iOS may be a challenge. Sorry we can't help more with this.
Your answer
Follow this Question
Related Questions
Load songs from iOS Music Player? 2 Answers
convert wav to compressed format like ogg 1 Answer
Does unity convert wav's to mp3 on iphone build? 2 Answers
How can unity read a directory? 3 Answers
The Unity move - converting application from C++ to C# 3 Answers