如何解决通过我的iPhone应用程序的声音问题 [英] how can I fix the sound problem through my iPhone Application
本文介绍了如何解决通过我的iPhone应用程序的声音问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在我的iPhone项目中使用辛格尔顿。当我点击的声音按钮(我用辛格尔顿)声音。当我点击播放(这将需要2个或3纳秒级),再经过将播放声音。
I am using Singleton in my iphone project. when I click on the sound button (I am using Singleton) for sound. when I click on the play (it will take 2 or 3 nano second) and then after the sound will play..
如何解决声音的这个问题..
How can I fix this problem of sound..
推荐答案
请确保你有你玩你的第一个声音在你的音频会话初始化。你可以做到这一点的。
Make sure you have your audio session initialized before you play your first sound. You could do that on the
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
方法。
这篇关于如何解决通过我的iPhone应用程序的声音问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文