开发者

Playing portion of an audio file on iPhone

Does anyone knows how to play a portion of a sound file on the iPhone? Using the SDK, or any other library (Cocos Desnhion...).

I know how to play an entire so开发者_StackOverflow中文版und, but not an exact portion of it (eg. from 2,5ms to 6ms).

Thanks!

Vincent


AVAudioPlayer has a currentTime property. Set it to start playing the file at a specific time mark and then watch its progress to stop playing when it reaches a desired mark.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜