简体   繁体   English

您如何反转AVAudioPlayer的播放?

[英]How do you reverse the playback of AVAudioPlayer?

Basically in my app I record a sound, and play it back, I would like to reverse the playback of this audio. 基本上,在我的应用程序中,我会录制声音并进行播放,我想反向播放该音频。 I've checked around on the net and I can't seem to find the answer. 我已经在网上检查了一下,但似乎找不到答案。 Any help would be great. 任何帮助都会很棒。

That's currently not supported by the AVAudioPlayer. AVAudioPlayer当前不支持该功能。 You have to implement your own player to archive reverse playback. 您必须实现自己的播放器才能存档反向播放。

There is a answer on the Apple mailing list on this topic . Apple邮件列表中有关于此主题答案 Short Version: rollout your own or use a 3rd party plugin like the DIRAC Plugin . 简短版本:自行部署或使用第三方插件(例如DIRAC Plugin)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM