iosavfoundationnsdatafinch

Can Finch play sounds from in memory NSData?


Can the Finch library play sounds from NSData sources so that things recorded within the app using AVAudioRecorder can then be played back?


Solution

  • Yes. The FISound class has an initializer that takes an FISample, which is just a simple wrapper around NSData. That means you can stuff your data into an FISample instance, fill in the audio metadata and use the sample to create an FISound.