Reputation: 1260
Please help, if you have a bunch of code somewhere, a method or something, I need to make an audio file while the application is streaming the audio, and save the result as file, maybe mp3 or other, thanks in advance.
Upvotes: 0
Views: 1284
Reputation: 3584
You can use the Core Audio Extended Audio File Services to write out audio data that you have access to the samples for:
I have only used it to write out PCM files, but the documentation suggests that compressed formats are also fine. You have a choice between synchronous and asynchronous writing although there is more setup needed for asynchronous writes.
Upvotes: 2