je tente d'écrire un soft devant lire/écrire à partir de la carte son en utilisant ALSA. Je pars du tutoriel http://www.equalarea.com/paul/alsa-audio.html
Mon code qui pose problème est :
#include "string.h";
#include "stdio.h";
#include "stdlib.h";
#include "alsa/asoundlib.h";
int main(int argc, char *argv[]){
printf("debut\n");
snd_pcm_hw_params_t *hw_params;
int i;
int err;
int dir=0;
int rate=44100;
short buf[128];
/*ON LIT*/
snd_pcm_t *capture_handle;
if ((err = snd_pcm_open (&capture_handle, "hw:0,0", SND_PCM_STREAM_CAPTURE, 0)) < 0) {
fprintf (stderr, "cannot open audio device %s (%s)\n",
argv[1],
snd_strerror (…)