开发者

What is the difference between AudioFileOpenURL and ExtAudioFileOpenURL?

If I use ExtAudioFile in conjunction with a remoteIO audio unit, I can use ExtAudioFileSetProperty with kExtAudioFileProperty_ClientDataFormat to convert the audio format read from disk into a device native format (with canonical au tags).

It seems when I use AudioFileOpenURL and related methods I can't use AudioFileSetProperty with kAudioFilePropertyDataFormat in 开发者_如何学Gothe same way.

Why can't I convert any audio file to the client data format through this slightly higher level api?


The AudioFile API came first, and is the lower-level of the two. ExtAudioFile is essentially a wrapper around an AudioFile and an associated AudioConverter. It is ExtAudioFile's internal AudioConverter that provides the functionality to convert to a specific client format.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜