Le 04/06/2014 09:26, Daniel Mack a écrit :
Then some other application has control over the device, most probably pulseaudio or JACK. Check if prepending arecord with "pasuspender --" helps.
You were right, but now the read seems to block..
isabellf@brahms:~/alsa-driver$ LC_ALL=C pasuspender -- arecord -Dplughw:3 file.wav Recording WAVE 'file.wav' : Unsigned 8 bit, Rate 8000 Hz, Mono ^CAborted by signal Interrupt... arecord: pcm_read:2031: Got SIGINT, exiting. read error: Interrupted system call
And the resulting file has no data.
isabellf@brahms:~/alsa-driver$ hexdump file.wav -C 00000000 52 49 46 46 24 00 00 80 57 41 56 45 66 6d 74 20 |RIFF$...WAVEfmt | 00000010 10 00 00 00 01 00 01 00 40 1f 00 00 40 1f 00 00 |........@...@...| 00000020 01 00 08 00 64 61 74 61 00 00 00 80 |....data....| 0000002c isabellf@brahms:~/alsa-driver$ ^C
François.