2 Star 12 Fork 16

Vanishi / BXC_AudioDemo

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

BXC_AudioDemo

@author 北小菜 https://www.bilibili.com/video/BV1ov4y1R789

本项目为一个音频相关的demo:

  1. decode_aac.cpp fdk-aac实现解码aac文件
  2. sdl2_play_aac.cpp fdk-aac实现解码aac文件,SDL2实现播放
  3. sdl2_play_pcm.cpp SDL2实现播放pcm文件

windows系统编译运行

只需要使用vs2019打开 BXC_AudioDemo.sln
选择 x64/Debug 或 x64/Release都能够直接运行,第三方依赖库包括SDL2和fdk-aac,已经配置成相对路径
vs2017,vs2022 没有试,应该都没有问题
 
注意:
1,上面三个cpp文件分别都有main函数,都可以作为入口函数,所以在使用的时候,一定要将其余两个cpp文件设置为不参与编译
2,运行demo的时候需要将,根目录下\3rdparty\SDL2\bin\SDL2.dll拷贝到 根目录下\x64\Release 或 根目录下\x64\Debug
MIT License Copyright (c) 2022 Vanishi 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.

简介

基于fdk-aac库和sdl2库,实现播放aac音频文件,播放pcm音频文件,解码aac音频文件。 展开 收起
C++
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

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

搜索帮助