Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ALSA tutorial required

Tags:

c

linux

audio

alsa

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 .

Please suggest me some tutorial for mixer settings as well as alsa programming .

like image 463
yuvaeasy Avatar asked Dec 13 '11 07:12

yuvaeasy


1 Answers

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

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...

like image 166
sdaau Avatar answered Nov 11 '22 19:11

sdaau