问题
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