Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的场景播放了背景音乐,当暂停另一个音乐明星时,但当再次恢复时,我想完成之前中断的背景音乐。
据我了解, dension 一次只能加载 1 个背景音乐,因此暂停/恢复背景音乐将不起作用。
有没有办法记住曲目的位置,然后将其倒回该位置?
我推荐你阅读 LearningCocos2d 的书,如果你只是想解决你的问题,直接去游戏管理器+简单的游戏音频引擎部分。这是一个帮助类,可以轻松地在音效、背景等之间切换。