需要 ALSA 教程 [英] ALSA tutorial required
问题描述
我是音频编程的新手.我想创建能够播放并提供音量控制的小型应用程序.我正在使用 alsa-lib.
I am New to audio programming.I want to create small application which is capable of playing and gives volume control . I am using alsa-lib.
我想知道开关的目的是什么(例如主播放开关),混音器元素中的枚举以及我应该为这些开关设置什么值.
I want to know what is the purpose of switch (ex.Master Playback switch), enum in mixer elements and what value should i set to those switchs .
请给我一些关于混音器设置和 alsa 编程的教程.
Please suggest me some tutorial for mixer settings as well as alsa programming .
推荐答案
这里只收集一些,有示例代码:
Just collecting some here, that have example code:
- ALSA 编程 HOWTO v.1.0.0 [alsamodular.sourceforge.net]
- 使用 ALSA 音频 API [equalarea.com] 的教程 2002莉>
- 深入了解 ALSA [volkerschatz.com]
- ALSA API - Aquiles Yanez 提供的带有源代码的示例程序 2005
- ALSA 声音编程简介 |Linux Journal(pg3 带有示例代码) 2004
- ALSA Programming HOWTO v.1.0.0 [alsamodular.sourceforge.net]
- A tutorial on using the ALSA Audio API [equalarea.com] 2002
- A close look at ALSA [volkerschatz.com]
- ALSA API - Sample Programs With Source Code By Aquiles Yanez 2005
- Introduction to Sound Programming with ALSA | Linux Journal (pg3 with example code) 2004
请注意,其中一些是旧的,同时 API 可能已更改...您也可以查找 aplay.c
(命令行的源 arecord
和 aplay
),但对于初学者来说,这不是最容易阅读的...
Note that some of these are old, and API may have changed in the meantime... you can also look up aplay.c
(the source for the command line arecord
and aplay
), but that one is not the easiest to read for starters...
这篇关于需要 ALSA 教程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!