播放一首歌并展示海浪

时间:2014-03-25 10:37:11

标签: iphone audio-streaming avcapturedevice

我一直在AVAudioPlayer工作,我想绘制一个看起来像这样的波形:

enter image description here

1 个答案:

答案 0 :(得分:1)

以下项目源代码可以帮助您:

https://github.com/ioslovers/ATTabandHoldAudioRecord

除此之外,apple提供了以下示例代码: https://developer.apple.com/library/ios/samplecode/SpeakHere/Introduction/Intro.html

其他相同的堆栈溢出重放显示实时绘图: https://stackoverflow.com/a/2402899/905514