<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 并知道当前播放时间?

      时间:2024-08-12
      <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 并知道当前播放时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:未找到 SpriteBuilder 图像文件 下一篇:以编程方式调用 textFieldShouldReturn

                相关文章

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

                1. <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>

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

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