It implements a virtual surround sound system and it was developed as part of the Component Based Softwared Design Course in the SSSUP-Pisa.
- Surround needs the loopback of ALSA, that's why snd-aloop module has to be enabled:
$ sudo modprobe snd-aloop
-
Select pulseaudio's output the snd-aloop that might have the following name "Analogue Output - Built-in Audio".
-
Identify the ALSA devices input devices, the loopback also counts as ALSA device:
$ arecord -l
Note the Loopback Card number with Device number 1.
- Pick the desired card and device, you can identify it using
$ aplay -l
- Run on terminal
$ make
- launch with
$ bin/main <LOOPBACK DEVICE> <PLAYBACK DEVICE>
i.e.:
$ bin/main hw:3,1 hw:1,0
- Run on terminal
$ make CFLAGS=-DMEASURE_LATENCY
When launch bin/main, it will create a latency_micros.dat file with the average spent time for a certain number of samples read by alsa.