Mixing Audio on the iPhone

前端 未结 1 927
夕颜
夕颜 2021-01-03 11:25

I have a number of static audio files that I want to be able to dynamically mix together and play on the iPhone (not all at once, most common case is to mix two or three aud

相关标签:
1条回答
  • 2021-01-03 11:44

    I recommend you take a look at the some of the Apple documentation and sample code relating to reading files and mixing.

    e.g. Mixing sample code

    and Audio Queue Services sample code

    and playing audio

    For a higher level API, use AudioQueueServices which does a lot of the buffering for you, but if you need to have maximum control and flexbility, then I suggest an AudioUnit along with AudioFileReadPackets which is part of AudioFileServices

    Hope that helps, Ben.

    0 讨论(0)
提交回复
热议问题