iPhone的声音:调整音频文件的播放速度,而玩 [英] iPhone Sound: Adjust speed of playback of audio file while playing

查看:183
本文介绍了iPhone的声音:调整音频文件的播放速度,而玩的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法,而在目标C演奏为iPhone / iPod touch的调整音频的回放速度?

is there a way to adjust the speed of the playback of an audio while playing in Objective C for the iPhone/iPod touch?

也将是有趣的,如果在播放文件向后将成为可能。

Also would be interesting if playing a file backwards would be possible.

感谢

汤姆

推荐答案

AVAudioPlayer 不给你速度控制,但它确实让你设置的位置,所以你可以做一个穷人的加速/反转以同样的方式QuickTime播放器呢:通过文件跳跃,以正常速度打小片段

AVAudioPlayer doesn't give you speed control, but it does let you set the position, so you could do a poor man's speed up/reverse the same way QuickTime Player does: by jumping through the file and playing small snippets at normal speed.

或者你DECOM preSS样品自己与离线 AudioQueue ,做任何你想要的速度。这就是我做的。

Or you decompress the samples yourself with an offline AudioQueue and do whatever rate you want. That's what I do.

这篇关于iPhone的声音:调整音频文件的播放速度,而玩的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆