the answer from Eric of HelixCommunity

博客介绍添加新数据类型支持的方法,先编写理解文件类型解析的文件格式插件,再编写从文件格式插件获取数据包并‘渲染’的渲染插件。以音频为例,‘渲染’指解码数据包并写入音频服务接口。还提及添加插件时会问的问题及调试方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

You're on the right track. To add support for a new datatype,
you first write a fileformat plugin which understands how
to parse the file type. Then you write a rendering plugin
which knows how to take the packets from the fileformat plugin
and "render" them. In the case of audio, "rendering" would
mean decoding the packets and writing the decoded audio to
the audio services interfaces.
These are usually the questions I ask when adding
new fileformat and renderer plugins:

Did the fileformat get invoked when you tried to
play the sample files? If so, did it produce packets and were
those packets received by the renderer plugin? Both of these questions
can be answered by just running in a debugger.

Eric
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值