APE文件学习——文件头(1)

这篇博客探讨了APE文件格式,特别是其文件头部分。作者通过Monkey's Audio Codec SDK学习了文件结构,包括JUNK、APE_DESCRIPTOR、APE_HEADER等组件,并分享了在Linux下使用od工具分析APE和WAV文件头的实践经验。文章提到,理解这些细节对于处理和创建APE文件至关重要。
摘要由CSDN通过智能技术生成

我没有怎么搜Google关于ape文件格式,一来好像不是很多(或是我没搜到),另一方面是因为下载了Monkey's Audio Codec 的SDK后,里面有定义,所以就自己钻研起来。

原文是酱紫的

APE File Format Overview: (pieces in order -- only valid for the latest version APE files)


    JUNK - any amount of "junk" before the APE_DESCRIPTOR (so people that put ID3v2 tags on the files aren't hosed)

    APE_DESCRIPTOR - defines the sizes (and offsets) of all the pieces, as well as the MD5 checksum

    APE_HEADER - describes all of the necessary information about the APE file

    SEEK TABLE - the table that represents seek offsets [optional]

    HEADER DATA - the pre-audio data from the original file [optional]

    APE FRAMES - the actual compressed audio (broken into frames for seekability)

    TERMINATING DATA - the post-audio data from the original file [optional]

    TAG - describes all the properties of the file [optional]

但是我没有太理解。看下去,(注意,这个头文件定义了 #pragma pach(4),结构体以4字节对齐,这个编译选项是vc的,我用gcc的= =)

/*****************************************************************************************
WAV header structure
*****
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值