ExtAudioFile - how to set meta data - ios

I am writing audio content to a m4a file with ExtAudioFileWriteAsync and it is working perfectly. However, I would also like to add meta data to the exported file.
Is this at all possible? If so, how?
Any help would be much appreciated.

I ended up doing it with AVAssetExportSession, loaded the file I am trying to edit into an AVURLAsset, adding the metadata to the export session, then saving the export.

Related

Is there any way to load MIDI into AKAppleSequencer or AKSequencer without using a file?

I want to use AudioKit to play MIDI but all the docs point to loading MIDI files from a path/URL. Is there any way to use a string for this?
I am currently using AKAppleSequencer (https://audiokit.io/docs/Classes/AKAppleSequencer.html) but I couldn't find how to initialize it with the contents of a MIDI file without having the file.
I guess that depends on the string. If you have a full midi file in a string, you could save it temporarily to load it up. Alternatively, you could take AKMIDIFile and use it as a base for AKMIDIString and where it converts the file data, you could use the string data.

EPG from multicast save to xml or any other file

i'm wondering how to save EPG from live transsimition over multicast. I've tryed with VLC but he dumps into some strange code.. Also i've trying with tv_grab_dvb-0.9 and have problems with save file. Any suggestions, or maybe solutions? Thx, for reading!!

UIWebView - Read content from file and delete the file

I have downloaded some content and store it in a file. While it was writing in the file, I will encrypt the file content. Now I have to show the decrypted file content in UIWebView. So , What I have done, I will decrypt the content and store it file.
Using loadRequest I can the content in UIWeView. Now again , I have to encrypt the content. How to do THIS? When will I come to know the loadRequest is finished without using UIWebView Delegate method (webviewDidFinishLoad)?
Is there and guidance on how this cane be done? Is even it possible to do it? I would appreciate any suggestions or some other way to do this.
I think it does not have the direct way to solve this issue. So, I have manually removed the file from the document directory after some time using the afterDelay method.

iOS MPMediaPickerController get file data or file url

I'm looking for a way to get a local file:/// url or a byte stream of audio data for a selected audio file using MPMediPickerController/MPMediaItem.
Anyone know if this is possible? So far it seems impossible based on the documentation I'm reading for MediaPlayer framework.
MPMediaItems raw song data
I am struck with the same problem. Please try the above link and let me know if that worked for you.

Convert .mp3 file to .wav or .caf in code in iOS

I am retrieving an MP3 file from the iPod Library and saving it to the application's Documents directory. I need to convert it to .wav or .caf so that I can use OpenAL or any other library to change the pitch of the audio.
Can this be done? Any assistance with code will be greatly appreciated.
Take a look at the AVAssetWriter class. Also, check out this link, its not exactly what you want, but its a start.
http://www.subfurther.com/blog/2010/12/13/from-ipod-library-to-pcm-samples-in-far-fewer-steps-than-were-previously-necessary/
Note that it might be difficult to gain access to the user's actual file as that would require reaching out of your app's sandbox - something Apple doesn't allow.

Resources