<bdo id='4JSJc'></bdo><ul id='4JSJc'></ul>
  1. <small id='4JSJc'></small><noframes id='4JSJc'>

      <legend id='4JSJc'><style id='4JSJc'><dir id='4JSJc'><q id='4JSJc'></q></dir></style></legend>
      <i id='4JSJc'><tr id='4JSJc'><dt id='4JSJc'><q id='4JSJc'><span id='4JSJc'><b id='4JSJc'><form id='4JSJc'><ins id='4JSJc'></ins><ul id='4JSJc'></ul><sub id='4JSJc'></sub></form><legend id='4JSJc'></legend><bdo id='4JSJc'><pre id='4JSJc'><center id='4JSJc'></center></pre></bdo></b><th id='4JSJc'></th></span></q></dt></tr></i><div id='4JSJc'><tfoot id='4JSJc'></tfoot><dl id='4JSJc'><fieldset id='4JSJc'></fieldset></dl></div>
      <tfoot id='4JSJc'></tfoot>

      如何在 cocos2d ios 中播放 BGM 并知道当前播放时间?

      How to play a BGM and know current playback time on in cocos2d ios?(如何在 cocos2d ios 中播放 BGM 并知道当前播放时间?)
      <i id='tf39q'><tr id='tf39q'><dt id='tf39q'><q id='tf39q'><span id='tf39q'><b id='tf39q'><form id='tf39q'><ins id='tf39q'></ins><ul id='tf39q'></ul><sub id='tf39q'></sub></form><legend id='tf39q'></legend><bdo id='tf39q'><pre id='tf39q'><center id='tf39q'></center></pre></bdo></b><th id='tf39q'></th></span></q></dt></tr></i><div id='tf39q'><tfoot id='tf39q'></tfoot><dl id='tf39q'><fieldset id='tf39q'></fieldset></dl></div>

        • <bdo id='tf39q'></bdo><ul id='tf39q'></ul>
            <legend id='tf39q'><style id='tf39q'><dir id='tf39q'><q id='tf39q'></q></dir></style></legend>

                <small id='tf39q'></small><noframes id='tf39q'>

                  <tbody id='tf39q'></tbody>

                <tfoot id='tf39q'></tfoot>

              • 本文介绍了如何在 cocos2d ios 中播放 BGM 并知道当前播放时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我正在开发一款基于音乐的 IOS 游戏,需要在背景音乐和全局计时器之间严格同步,所以我正在寻找一种播放音乐的方式,同时知道音乐的确切位置每次更新帧时都在播放.

                I'm working on a IOS game based on music, and a strict synchronize between background music and global timer is necessary, so I'm looking for some way to play music AND at the same time knowing which exact position the music is playing on at each frame update.

                OALSimpleAudio 没有这种接口.有没有更好的解决方案?谢谢!

                the OALSimpleAudio Doesn't have such kind of interface. Are there any better solution? Thank you!

                推荐答案

                OALSimpleAudio Background-Music (OALAudioTrack) 使用 AVAudioPlayer.

                OALSimpleAudio Background-Music (OALAudioTrack) uses the AVAudioPlayer.

                试试:

                [[[[OALSimpleAudio sharedInstance] backgroundTrack] player] currentTime]
                

                这篇关于如何在 cocos2d ios 中播放 BGM 并知道当前播放时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Hardware Volume buttons change in app volume(硬件音量按钮更改应用程序音量)
                Cocos2d - How to check for Intersection between objects in different layers(Cocos2d - 如何检查不同层中对象之间的交集)
                Resume game cocos2d(恢复游戏 cocos2d)
                Highlight Read-Along Text (in a storybook type app for iPhone)(突出显示朗读文本(在 iPhone 的故事书类型应用程序中))
                Cocos2D + Disabling only Retina iPad Graphics(Cocos2D + 仅禁用 Retina iPad 图形)
                How to convert 32 bit PNG to RGB565?(如何将 32 位 PNG 转换为 RGB565?)

                    <bdo id='GZM8M'></bdo><ul id='GZM8M'></ul>

                  • <i id='GZM8M'><tr id='GZM8M'><dt id='GZM8M'><q id='GZM8M'><span id='GZM8M'><b id='GZM8M'><form id='GZM8M'><ins id='GZM8M'></ins><ul id='GZM8M'></ul><sub id='GZM8M'></sub></form><legend id='GZM8M'></legend><bdo id='GZM8M'><pre id='GZM8M'><center id='GZM8M'></center></pre></bdo></b><th id='GZM8M'></th></span></q></dt></tr></i><div id='GZM8M'><tfoot id='GZM8M'></tfoot><dl id='GZM8M'><fieldset id='GZM8M'></fieldset></dl></div>
                    <legend id='GZM8M'><style id='GZM8M'><dir id='GZM8M'><q id='GZM8M'></q></dir></style></legend>
                      <tbody id='GZM8M'></tbody>

                      <tfoot id='GZM8M'></tfoot>

                        <small id='GZM8M'></small><noframes id='GZM8M'>