Can anybody help me in recording iPhone output sound through Audio Unit

前端 未结 2 1121
走了就别回头了
走了就别回头了 2020-12-04 20:11

this is my code : i use this code to record the iPhone output audio by using Audio Unit then saving the output in output.caf but the output.caf file is empty any body have

2条回答
  •  南笙
    南笙 (楼主)
    2020-12-04 21:10

    The RemoteIO Audio Unit does not record audio output, only input from the microphone. The output is not connected to the mic input.

    If you use RemoteIO for playing audio, you can copy the copy the same buffers you feed the output callback for playing audio to a file writer as well. But that's only for raw audio content you play via RemoteIO.

提交回复
热议问题