Apple Lossless Audio Codec 苹果无损音频解码器
苹果开源操作系统及相关工具
# 自从苹果开源了一系列的资源,我对苹果操作系统及相关工具非常感兴趣,就利用业务时间研究一下。
macOS-forge
Apple Lossless Audio Codec
苹果无损音频解码器包括编码器和解码器的源代码,还包括一个命令行下的例子,叫做alacconvert,可以读写音频数据,CAF core Audio Format和wave文件。也包含基于ISO的媒体文件格式MP4ba.net和M4A。
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
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐



所有评论(0)