3 Star 2 Fork 2

opfe / sbc_encode_decode

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

sbc_encode_decode

介绍

蓝牙a2dp协议中的sbc编码 解码器,在windows下运行的工具软件,含编解码资源。

使用说明

  1. cmd下,.\sbc_decoder.exe -h
  2. .\sbc_decoder.exe -ottt.wav ttt.sbc
  3. xxx

bludroid的sbc编解码器

源码很简单,简单说下,没时间专门做例子了。

https://gitee.com/EspressifSystems/esp-idf/tree/release/v5.0/components/bt/host/bluedroid/external/sbc

这个文件夹里的代码足够,顶多有几个宏需要预定义一下。

OI_CODEC_SBC_DecoderReset() 和 OI_CODEC_SBC_DecodeFrame()完成解码,把sbc文件切碎喂进去就行,就输出pcm数据

extern void SBC_Encoder(SBC_ENC_PARAMS *strEncParams); extern void SBC_Encoder_Init(SBC_ENC_PARAMS *strEncParams); 完成编码,结构体里要填好内容

对比https://gitee.com/EspressifSystems/esp-idf/tree/release/v5.0/components/bt/host/bluedroid里面对这两个api的使用就能看懂用法

MIT License Copyright (c) 2020 opfe Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

蓝牙a2dp协议中的sbc编码 解码器,在windows cmd下运行的工具软件,含编解码资源+bluedroid sbc开发提示 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/opfe/sbc_encode_decode.git
git@gitee.com:opfe/sbc_encode_decode.git
opfe
sbc_encode_decode
sbc_encode_decode
master

搜索帮助