I’m exploring audio growth and am overwhelmed by the quite a few libraries accessible:
- AVFoundation
- MediaPlayer
- AVFAudio
- Audio Engine
- CoreAudio
- AudioToolbox
- Audio Unit
Which of those ought to I take advantage of to play each community or native music information (flac/wav/mp3/aac/wma/ogg)? What are their particular roles?
My understanding is that I ought to use ffmpeg
for demuxing to unpackage, then decode the stream to get PCM samples, presumably utilizing Audio Engine for playback. Is that this a software program decoding methodology? For Apple-supported codecs like mp3, can I bypass ffmpeg
for decoding? Which library could be most fitted on this case?
Moreover, how do I extract metadata (tune title, artist, cowl, lyrics, and many others.) from music information? Apple’s personal options appear to assist solely ID3 or iTunes tags. How ought to I deal with different codecs like wav/flac?
The 2 hyperlinks beneath are the assets I’ve referenced, however they appear outdated. My seek for newer, dependable explanations has been fruitless.