79457202

Date: 2025-02-21 11:23:13
Score: 2.5
Natty:
Report link

I'm not sure if you can find a full tutorial for your exact problem but as far as I can tell what you need is the following:

  1. AudioFileStream extracts MP3 frames from NSData: https://stackoverflow.com/a/17332543/29516370

  2. AudioConverter converts the MP3 frames to PCM : Unable to convert mp3 into PCM using AudioConverterFillComplexBuffer in AudioFileStreamOpen's AudioFileStream_PacketsProc callback

  3. The PCM data can be played using AudioUnit: as you say you've already done it

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Kiryl Famin