Skip to content

Emulates surround system for Linux using Alsa loopback

Notifications You must be signed in to change notification settings

ckevar/surround

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Surround

It implements a virtual surround sound system and it was developed as part of the Component Based Softwared Design Course in the SSSUP-Pisa.

Requirements

  1. Surround needs the loopback of ALSA, that's why snd-aloop module has to be enabled:

$ sudo modprobe snd-aloop

  1. Select pulseaudio's output the snd-aloop that might have the following name "Analogue Output - Built-in Audio".

  2. Identify the ALSA devices input devices, the loopback also counts as ALSA device:

$ arecord -l

Note the Loopback Card number with Device number 1.

  1. Pick the desired card and device, you can identify it using

$ aplay -l

Compile

  1. Run on terminal

$ make

  1. launch with

$ bin/main <LOOPBACK DEVICE> <PLAYBACK DEVICE>

i.e.:

$ bin/main hw:3,1 hw:1,0

Compile with LATENCY MEASURE

  1. 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.