Hi guys,
What packages I need install to make ALSA programs in debian ?
I was trying to compile this example ( http://equalarea.com/paul/alsa-audio.html#playex ), but I give some errors.. I paste in the end of this e-mail.
Are there some "apt-get install" that I can use ? Or I need download and install from another place ?
Thanks a lot,
Leomar
========================================
# gcc -o play play.c
play.c: In function `main':
play.c:44: warning: passing arg 3 of `snd_pcm_hw_params_set_rate_near' makes pointer from integer without a cast
/tmp/ccaeBi5f.o(.text+0x39): In function `main':
: undefined reference to `snd_pcm_open'
/tmp/ccaeBi5f.o(.text+0x4d): In function `main':
: undefined reference to `snd_strerror'
/tmp/ccaeBi5f.o(.text+0x8c): In function `main':
: undefined reference to `snd_pcm_hw_params_malloc'
/tmp/ccaeBi5f.o(.text+0xa0): In function `main':
: undefined reference to `snd_strerror'
/tmp/ccaeBi5f.o(.text+0xdd): In function `main':
: undefined reference to `snd_pcm_hw_params_any'
/tmp/ccaeBi5f.o(.text+0xf1): In function `main':
: undefined reference to `snd_strerror'
/tmp/ccaeBi5f.o(.text+0x136): In function `main':
: undefined reference to `snd_pcm_hw_params_set_access'
/tmp/ccaeBi5f.o(.text+0x14a): In function `main':
: undefined reference to `snd_strerror'
/tmp/ccaeBi5f.o(.text+0x18f): In function `main':
: undefined reference to `snd_pcm_hw_params_set_format'
/tmp/ccaeBi5f.o(.text+0x1a3): In function `main':
: undefined reference to `snd_strerror'
/tmp/ccaeBi5f.o(.text+0x1f0): In function `main':
: undefined reference to `snd_pcm_hw_params_set_rate_near'
/tmp/ccaeBi5f.o(.text+0x204): In function `main':
: undefined reference to `snd_strerror'
/tmp/ccaeBi5f.o(.text+0x249): In function `main':
: undefined reference to `snd_pcm_hw_params_set_channels'
/tmp/ccaeBi5f.o(.text+0x25d): In function `main':
: undefined reference to `snd_strerror'
/tmp/ccaeBi5f.o(.text+0x29a): In function `main':
: undefined reference to `snd_pcm_hw_params'
/tmp/ccaeBi5f.o(.text+0x2ae): In function `main':
: undefined reference to `snd_strerror'
/tmp/ccaeBi5f.o(.text+0x2e1): In function `main':
: undefined reference to `snd_pcm_hw_params_free'
/tmp/ccaeBi5f.o(.text+0x2ef): In function `main':
: undefined reference to `snd_pcm_prepare'
/tmp/ccaeBi5f.o(.text+0x303): In function `main':
: undefined reference to `snd_strerror'
/tmp/ccaeBi5f.o(.text+0x357): In function `main':
: undefined reference to `snd_pcm_writei'
/tmp/ccaeBi5f.o(.text+0x36f): In function `main':
: undefined reference to `snd_strerror'
/tmp/ccaeBi5f.o(.text+0x3a9): In function `main':
: undefined reference to `snd_pcm_close'
collect2: ld returned 1 exit status