现在的位置: 首页 > 综合 > 正文

[iOS]Audio Format – afconvert

2012年07月22日 ⁄ 综合 ⁄ 共 529字 ⁄ 字号 评论关闭

when you want to convert your music or sound effect file to your ios application, you need to convert them to some audio format even though iOS can support many format to achieve performance and decrease your app size.

there are some good command

0: afplay xxx.xxx can test if it can be played after your convertion

1. long source music: aac is preferred. convert as below(wav file is save as by coolEdit with Microsoft ADPCM):

afconvert -f 'adts' input.wav output_file.aac

2. short source effect: caf is preferred, format is Linear PCM (uncompressed), convert as below:

afconvert-d LEI16-f'caff'input_file.xxx output_file.caf

 

抱歉!评论已关闭.