我怎样才能减少.wav音频文件为iPhone应用程序的大小? [英] How can I reduce the size of .wav audio files for iPhone apps?

查看:191
本文介绍了我怎样才能减少.wav音频文件为iPhone应用程序的大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些音乐循环。 .wav文件大小约为8兆。我加载此,只是循环它...直到我又增加了4兆.wav文件的一切工作正常。现在的游戏崩溃...删除额外的音频文件确定的崩溃。

I have some music that loops. The .wav file size is about 8 meg. I load this and just loop it... everything was working fine until I added another 4 meg .wav file. Now the game crashes... removing the additional audio file fixed the crashing.

所以,我怎么能减少这些.wav文件的大小?我想到了释放内存,我用4兆的文件,但我试过没有工作完成后,(我宁愿游戏本身是一个较小的文件大小,以便更容易下载)。

So how can I reduce the size of these .wav files? I thought about releasing the memory after I'm done with the 4 meg file but what I tried didn't work (and I'd rather the game itself be a smaller file size so it's easier to download).

谢谢!

推荐答案

如果你只玩了一声音文件的时间,只需使用MP3或AAC。这样,你还可以得到硬件解码,以提高性能和电池寿命。

If you're only playing one sound file at a time, just use mp3 or aac. That way you also get hardware decoding, for improved performance and battery life.

不幸的是,iPhone只能一次播放一个硬件去codeD声音文件。所以,如果你正在寻找扮演过多个一次,你需要做自己的第二个文件的解码; IMA 4:1建议,但你必须找到或实现自己去codeR,苹果不给你一

Unfortunately, the iPhone can only play one hardware decoded sound file at a time. So if you're looking to ever play more than one at once, you'll need to do your own decoding of the second file; IMA 4:1 is recommended, though you'll have to find or implement your own decoder, Apple doesn't give you one.

这是所有基于关闭这篇博客文章,该进入一个更加详细。

This is all based off of this blog post, which goes into a bit more detail.

这篇关于我怎样才能减少.wav音频文件为iPhone应用程序的大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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