当前位置:网站首页>迅为IMX6Q开发板QT系统移植tinyplay
迅为IMX6Q开发板QT系统移植tinyplay
2022-07-04 12:51:00 【mucheni】
配套资料在网盘资料的“iTOP-i.MX6 开发板资料汇总(不含光盘资料)\08_iTOP-i.MX6 开发板 Linux 系统开发资料\13-Linux 系统移植 tinyplay\iTOP-iMX6-Linux 系统-声卡移植 tinyplay.zip”
tinyalsa 是 Google 在 Android 4.0 之后推的基于 alsa 内核的用户层音频接口。tinyalsa 提供的头文件是"asoundlib.h",提供最基础的 pcm 和 mixer 操作。
tinyalsa 的实现文件为 pcm.c(实现 pcm api)和 mixer.c(实现 mixer api)。在其中有四个小工具它们
分别是:
tinypcminfo:tinypcminfo.c,查看 pcm 设备能力;
tinyplay:tinyplay.c,使用 pcm 设备播放 wav 格式的音频文件;
tinycap:tinycap.c,使用 pcm 设备采集 pcm 格式的码流,并保存为 wav 格式的文件;
tinymix:tinymix.c,对 pcm 设备的控制,包括音量调节、设备切换。
这四个工具使用时可以先使用 tinypcminfo 查看 pcm 设备的能力,以防我们使用其他三个命令时使用了不合理的配置会出现 parameter invalid 的错误。
本文档适用于最小 Linux 系统以及 Qt 系统。
78.1 源码编译
查看本次提供的压缩包内容,分别为指导文档,测试音乐以及源码文件夹,如下图所示。

将提供的压缩包中的文件夹 tinyalsa 拷贝到 Ubunut 的工作目录,如图。

本次编译环境为“arm-2009q3”,如下图所示。

进入到 ubuntu 上的 tinyalsa 文件夹,在当前目录下输入命令“make”,自动生成 4 个 可执行文件“tinycap、tinymix、tinypcminfo、tinyplay”。

编译完成。
更多内容可以关注公众号:北京迅为了解更多喔
边栏推荐
- Use of tiledlayout function in MATLAB
- Golang 使用 JSON unmarshal 数字到 interface{} 数字变成 float64 类型(转)
- 吃透Chisel语言.11.Chisel项目构建、运行和测试(三)——Chisel测试之ScalaTest
- Deming Lee listed on Shenzhen Stock Exchange: the market value is 3.1 billion, which is the husband and wife of Li Hu and Tian Hua
- 安装Mysql
- 吃透Chisel语言.04.Chisel基础(一)——信号类型和常量
- [C question set] of VII
- 【信息检索】链接分析
- gin集成支付宝支付
- Excel quickly merges multiple rows of data
猜你喜欢

软件测试之测试评估

Use the default route as the route to the Internet
![[matlab] summary of conv, filter, conv2, Filter2 and imfilter convolution functions](/img/7a/9b559313b407f9a12cbaed7bebd4dc.png)
[matlab] summary of conv, filter, conv2, Filter2 and imfilter convolution functions

Mask wearing detection based on yolov1

Unity shader learning (3) try to draw a circle
![递增的三元子序列[贪心训练]](/img/92/7efd1883c21c0e804ffccfb2231602.png)
递增的三元子序列[贪心训练]

吃透Chisel语言.09.Chisel项目构建、运行和测试(一)——用sbt构建Chisel项目并运行

Ruichengxin micro sprint technology innovation board: annual revenue of 367million, proposed to raise 1.3 billion, Datang Telecom is a shareholder

基于YOLOv1的口罩佩戴检测

Deming Lee listed on Shenzhen Stock Exchange: the market value is 3.1 billion, which is the husband and wife of Li Hu and Tian Hua
随机推荐
学习项目是自己找的,成长机会是自己创造的
MATLAB中tiledlayout函数使用
Golang uses JSON unmarshal number to interface{} number to become float64 type (turn)
Unittest框架之断言
mac redis安装与使用,连接远程服务器 redis
国内酒店交易DDD应用与实践——代码篇
R language uses the DOTPLOT function of epidisplay package to visualize the frequency of data points in different intervals in the form of point graph, and uses the by parameter to specify the groupin
sharding key type not supported
[C question set] of VII
Apple 5g chip research and development failure: continue to rely on Qualcomm, but also worry about being prosecuted?
海外游戏代投需要注意的
MongoDB常用28条查询语句(转)
R语言使用dplyr包的group_by函数和summarise函数基于分组变量计算目标变量的均值、标准差
吃透Chisel语言.11.Chisel项目构建、运行和测试(三)——Chisel测试之ScalaTest
安装Mysql
GCC [6] - 4 stages of compilation
做事的真正意义和目的,真正想得到什么
Migration from go vendor project to mod project
QT how to detect whether the mouse is on a control
How to package QT and share exe