需要 ALSA 教程 [英] ALSA tutorial required

查看:37
本文介绍了需要 ALSA 教程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是音频编程的新手.我想创建能够播放并提供音量控制的小型应用程序.我正在使用 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 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(命令行的源 arecordaplay),但对于初学者来说,这不是最容易阅读的...

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆