Hy如果我想为整个游戏添加音乐我应该如何使用它。当我退出比赛时,音乐将停止 [英] Hy If I Want To Add Music For The Whole Game How Should I Put It . The Music Will Stop When The Game I Quit The Game

查看:103
本文介绍了Hy如果我想为整个游戏添加音乐我应该如何使用它。当我退出比赛时,音乐将停止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

#import





@interface FYPAppDelegate:UIResponder< uiapplicationdelegate>



@property(强,非原子)UIWindow *窗口;



@end

#import


@interface FYPAppDelegate : UIResponder <uiapplicationdelegate>

@property (strong, nonatomic) UIWindow *window;

@end

推荐答案

您应该阅读Apple的音频会话编程指南以了解在Apps中设计声音。



应用程序中的音乐应该在上下文中播放,即关卡或视图。



请在 Ray Wenderlich 的网站上学习一些课程,以增强您的知识。
you should read the Audio Session Programming Guide from Apple to understand the design of sound in Apps.

Music in an App should be played in the context ie a level or a view.

Please take some lesson on the website of Ray Wenderlich to enhance your knowledge.


这篇关于Hy如果我想为整个游戏添加音乐我应该如何使用它。当我退出比赛时,音乐将停止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆