如何在我的 Android cocos2d 项目中使用 mp3 声音以免将 apk 大小增加到 25MB
我们正在使用 cocos2d 在 Android 上开发一款游戏。现在根据我们的场景,我们有超过 20MB 的 mp3 声音文件,它们占据了我们最终 apk 的全部空间。谁能给我们建议一种更简单、更有策略的方法来同时有效地使用 mp3 声音中的所有现有声音而不将 apk 大小增加到超过 25 MB?实在是太紧急了。
We are developing one game in Android with cocos2d. Now as per out scenario, we have more than 20MB of just mp3 sound files which occupy the whole lot space of our final apk. Can anyone suggest us a simpler and tactical way to efficiently use all existing sounds in mp3 sounds simultaneously not to increase apk size to more than 25 MB?? Its really urgent.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于许多具有大量资源的游戏,下载后它们实际上会连接到服务器,将 MP3 或高分辨率纹理下载到已知目录中。查看 DataStorage API 以获取有关此内容的更多信息。
只需确保您涵盖了用户的设备上没有这些 MP3 文件的情况,无论是因为他们决定不下载它们、无法访问互联网还是删除了它们。
http://developer.android.com/guide/topics/data/data -存储.html
With many games with large resources, after downloading they actually will connect to a server download the MP3 or high-resolution textures into a known directory. Check out the DataStorage API for more information about this.
Just make sure you cover the case where the user does not have these MP3 files on their device, whether it was because they decided not to download them, doesn't have internet acccess or deleted them.
http://developer.android.com/guide/topics/data/data-storage.html