how can I fix the sound problem through my iPhone Application

别等时光非礼了梦想. 提交于 2019-12-13 05:24:10

问题


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..


回答1:


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

method.



来源:https://stackoverflow.com/questions/6018508/how-can-i-fix-the-sound-problem-through-my-iphone-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!