如何减小临时构建的大小
我在我的应用程序中使用了太多图像和音乐。
音乐持续时间短,但尺寸很大。 该声音采用 .caf 格式,
我有很多这样的声音,
这就是为什么临时构建大小达到 35mb。而且我仍然必须添加更多。
我正在使用它来创建系统声音...
就像
NSURL *tapSound = [[NSBundle mainBundle] URLForResource: @"sound1"
withExtension: @"aif"];
self.soundFileURLRef = (CFURLRef) [tapSound retain];
AudioServicesCreateSystemSoundID (
soundFileURLRef,
&soundFileObject
);
我尝试在这里使用 mp3 或 wav 声音,但这不起作用。
请帮忙
I am using too many images and music in my app..
The music is short in duration but very large in size ..
That sound is in .caf
format
i have many sounds like this
That is why the adhoc build size reached to 35mb.And still i have to add more.
I am using that in creating system sound...
Like
NSURL *tapSound = [[NSBundle mainBundle] URLForResource: @"sound1"
withExtension: @"aif"];
self.soundFileURLRef = (CFURLRef) [tapSound retain];
AudioServicesCreateSystemSoundID (
soundFileURLRef,
&soundFileObject
);
I have tried to use an mp3 or wav sound here but that is not working.
Kindly help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
@Kumar Sonu:
尝试压缩声音文件并压缩图像(如果可能)。
注意:压缩音频文件可能会降低音质并降低 kbps
希望这对您有所帮助。
@Kumar Sonu:
Try compressing your sound files and compress your images if possible.
Note: Compressing your audio files may deteriorate your sound quality and may decrease your kbps
Hope this helps you.