当前位置:网站首页>迅为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”。

编译完成。
更多内容可以关注公众号:北京迅为了解更多喔
边栏推荐
- 吃透Chisel语言.07.Chisel基础(四)——Bundle和Vec
- 递增的三元子序列[贪心训练]
- xshell/bash/zsh 等终端鼠标滚轮乱码问题(转)
- markdown 语法之字体标红
- IP 实验室月复盘 · 第 5 期
- Golang 使用 JSON unmarshal 数字到 interface{} 数字变成 float64 类型(转)
- R语言使用epiDisplay包的dotplot函数通过点图的形式可视化不同区间数据点的频率、使用by参数指定分组参数可视化不同分组的点图分布
- 吃透Chisel语言.04.Chisel基础(一)——信号类型和常量
- Migration from go vendor project to mod project
- 基于51单片机的超声波测距仪
猜你喜欢

瑞吉外卖笔记

【信息检索】链接分析
![去除重複字母[貪心+單調棧(用數組+len來維持單調序列)]](/img/af/a1dcba6f45eb4ccc668cd04a662e9c.png)
去除重複字母[貪心+單調棧(用數組+len來維持單調序列)]

Huahao Zhongtian rushes to the scientific and Technological Innovation Board: the annual loss is 280million, and it is proposed to raise 1.5 billion. Beida pharmaceutical is a shareholder

Use the default route as the route to the Internet

测试流程整理(2)

Haobo medical sprint technology innovation board: annual revenue of 260million Yonggang and Shen Zhiqun are the actual controllers

小程序直播 + 电商,想做新零售电商就用它吧!

Xcode 异常图片导致ipa包增大问题

Understand chisel language thoroughly 11. Chisel project construction, operation and test (III) -- scalatest of chisel test
随机推荐
vscode 常用插件汇总
基于YOLOv1的口罩佩戴检测
go语言中的文件创建,写入,读取,删除(转)
xshell/bash/zsh 等终端鼠标滚轮乱码问题(转)
Qt如何实现打包,实现EXE分享
Haobo medical sprint technology innovation board: annual revenue of 260million Yonggang and Shen Zhiqun are the actual controllers
Ws2818m is packaged in cpc8. It is a special circuit for three channel LED drive control. External IC full-color double signal 5v32 lamp programmable LED lamp with outdoor engineering
Xcode 异常图片导致ipa包增大问题
GCC [6] - 4 stages of compilation
2022 game going to sea practical release strategy
WS2818M是CPC8封装,是三通道LED驱动控制专用电路外置IC全彩双信号5V32灯可编程led灯带户外工程
Yingshi Ruida rushes to the scientific and Technological Innovation Board: the annual revenue is 450million and the proposed fund-raising is 979million
Huahao Zhongtian rushes to the scientific and Technological Innovation Board: the annual loss is 280million, and it is proposed to raise 1.5 billion. Beida pharmaceutical is a shareholder
php 日志调试
Applet live + e-commerce, if you want to be a new retail e-commerce, use it!
【C 题集】of Ⅶ
Test process arrangement (3)
BLOB,TEXT GEOMETRY or JSON column 'xxx' can't have a default value query 问题
R语言使用lattice包中的bwplot函数可视化箱图(box plot)、par.settings参数自定义主题模式
10.(地图数据篇)离线地形数据处理(供Cesium使用)