[英]Looped Audio samples in the iPhone
I am trying to made a musical iPhone application and I am having some problems playing looped samples. 我正在尝试制作音乐手机应用程序,但在播放循环采样时遇到一些问题。
I have read this question: audio-on-the-iphone 我已经阅读了这个问题: iPhone上的音频
and several other posts and blogs in the web about the "RemoteIO"/AudioUnits framework but without success. 以及网络上有关“ RemoteIO” / AudioUnits框架的其他一些帖子和博客,但没有成功。
I have been able to do a sample application that plays a finite sound with a predefined duration (I am using a playbackCallback) but I need the sound to start playing with the user touches the screen and stop playing when the user lift the finger. 我已经能够制作一个示例应用程序,该应用程序以预定义的持续时间播放有限的声音(我正在使用playbackCallback),但是我需要声音来让用户触摸屏幕开始播放,并在用户松开手指时停止播放。
Any ideas? 有任何想法吗?
Thanks in advance. 提前致谢。
Assuming your code is correct, you're probably omitting one (or more) of these steps: 假设您的代码正确,那么您可能会省略以下一个或多个步骤:
You will not need all of these to avoid clicks. 您将不需要所有这些来避免单击。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.