Audio: Record and playback

Hello, I want to do recording and playing back audio on my iOS device. Can someone give me a short hint, which classes are useful for this use case?


I googled around this topic a lot and read a lot of different things. But I'm not really sure, what classes are the right one for me.


Examples: AVAudioSinkNode, AVAudioSourceNode, AVAudioSession, AVAudioRecording, AVAudioQueue etc.

Maybe someone could show me a code snippet or sample project (if possible).

Replies

Nobody here who can help me and give me short hint?

???

??

No Sample, but this will help point you in the right direction.


https://developer.apple.com/documentation/avfoundation/audio_track_engineering

Thanks a lot for your reply.


Now I want to playback streaming audio on my device. I receive the audio data from network and want to playback it on my device. I wanted to try it with AVAudioPlayer, but I think the AVAudioPlayer doesn't support the streaming use case. I have to use the AVPlayer.


It's possible to use the AVPlayer with audio chunks? I found only the use case with AVPlayer and an URL as input.