xcode 使用 iPhone 进行音频波形可视化

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4548951/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 20:02:52  来源:igfitidea点击:

audio waveform visualisation with iPhone

iphoneobjective-cxcodeinterface-builder

提问by major

I'd like to import a track from iTunes or an external URL and display the waveform with play/pause/rewind/stop features. Can someone point me in the right path? Thanks

我想从 iTunes 或外部 URL 导入曲目并显示具有播放/暂停/倒带/停止功能的波形。有人可以指出我正确的道路吗?谢谢

回答by goelv

Recently I found a library that can display a waveform on iOS by reading the audio file directly.

最近发现了一个可以在iOS上直接读取音频文件显示波形的库。

It's incredibly simple to use & I plan to incorporate it my next app update:

它使用起来非常简单,我计划将它合并到我的下一个应用程序更新中:

FDWaveformView @GitHub

FDWaveformView @GitHub

回答by Jumhyn

For playing music, look into MPMusicPlayerController. For information on audio waveforms check out thistutorial.

要播放音乐,请查看MPMusicPlayerController。有关音频波形的信息,请查看教程。