Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
启动时,您需要通过调用来初始化 AudioSession
AudioSession
AudioSessionInitialize(NULL,NULL,NULL,NULL);
,然后将音频类别设置为 kAudioSessionCategory_AmbientSound,如下所示
kAudioSessionCategory_AmbientSound
UInt32 sessionCategory = kAudioSessionCategory_AmbientSound; AudioSessionSetProperty(kAudioSessionProperty_AudioCategory, sizeof(sessionCategory), &sessionCategory); AudioSessionSetActive(true);
At startup you need to init an AudioSession by calling
and then set your audio category to kAudioSessionCategory_AmbientSound, like so
我很确定它与你的应用程序无关(即为 ipod 运行一个特殊的后台服务),但我可能是错的......
I'm pretty sure that it has nothing to do with your app (i.e. a special background service runs for the ipod), but i could be wrong...
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(2)
启动时,您需要通过调用来初始化
AudioSession
,然后将音频类别设置为
kAudioSessionCategory_AmbientSound
,如下所示At startup you need to init an
AudioSession
by callingand then set your audio category to
kAudioSessionCategory_AmbientSound
, like so我很确定它与你的应用程序无关(即为 ipod 运行一个特殊的后台服务),但我可能是错的......
I'm pretty sure that it has nothing to do with your app (i.e. a special background service runs for the ipod), but i could be wrong...