Linux Ubuntu 18.04
I'm trying to get the raw signal from a microphone as byte sequence and do some signal processing by myself. My first thought was actually just to find a device in the /dev directory, open file descriptor and start reading from it. But I discovered that there is audio library ALSA which I think does not really provide the ability to read a raw signal from the microphone.
So I found the /dev/snd directory and got confused. Here is how it looks like on my machine:
/dev/snd$ tree
.
├── by-path
│ ├── pci-0000:00:03.0 -> ../controlC0
│ └── pci-0000:00:1b.0 -> ../controlC1
├── controlC0
├── controlC1
├── hwC0D0
├── hwC1D0
├── pcmC0D3p
├── pcmC0D7p
├── pcmC0D8p
├── pcmC1D0c
├── pcmC1D0p
├── pcmC1D1p
├── pcmC1D2c
├── seq
└── timer
How to determine what is the microphone here?