开发者

Playing portion of an audio file on iPhone

开发者 https://www.devze.com 2022-12-22 18:00 出处:网络
Does anyone knows how to play a portion of a sound file on the iPhone? Using the SDK, or any other library (Cocos Desnhion...).

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

精彩评论

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

关注公众号