Apple Lossless Audio Codec 苹果无损音频解码器

# 自从苹果开源了一系列的资源,我对苹果操作系统及相关工具非常感兴趣,就利用业务时间研究一下。

Apple Open Source 包括:


macOS-forge

Apple Lossless Audio Codec

苹果无损音频解码器包括编码器和解码器的源代码,还包括一个命令行下的例子,叫做alacconvert,可以读写音频数据,CAF core Audio Format和wave文件。也包含基于ISO的媒体文件格式MP4ba.net和M4A。

Apple Lossless Audio Codec

Apple Lossless Audio Codec (ALAC)

Source Code

git clone https://github.com/macosforge/alac.git ALAC

苹果无损音频解码器, 是苹果开发的音频解码器,应用于iPhone, iPad, iPod, mac, iTunes。ALAC是一种数字压缩方法,可以减小音频的大小而不损失信息。ALAC解码流是字节级别的原来没有压缩过的音频文件。

本编辑器支持 Markdown Extra ,  扩展了很多好用的功能。具体请参考[Github][2].

libalac.a

codec目录里有makefile可以创建ALAC编解码器的静态库。

在codec目录下使用make命令创建libalac.a和相关的.o文件


构建alacconvert

To demonstrate how to encode/decode ALAC to/from audio files, build the alacconvert command line utility. The utility accepts CAF/WAVE files containing pcm data for encoding ALAC into a CAF file. It accepts CAF files containing ALAC for decoding to pcm in CAF/WAVE files. Within the convert-utility directory there are three projects; ALACconvert.xcodeproj (macOS), ALACconvert.vcproj (Windows), makefile (generic UNIX makefile).

The macOS and Windows projects compile the decoder/encoder directly into the alacconvert tool. The UNIX makefile builds libalac.a first and links against the static library for compiling the tool.

As mentioned in the ReadMe, the Windows project requires

使用alacconvert

编码器

alacconvert sourcefile.caf outputfile.caf
alacconvert sourcefile.wav outputfile.caf

解码器

alacconvert sourcefile.caf outputfile.caf
alacconvert sourcefile.caf outputfile.wav

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值