[AudioI] Light compilation of ALSA full duplex test from gtkIOStream

Matt matt at audioinjector.net
Wed Mar 11 10:01:45 AEDT 2020


This is an example of compiling ALSAFullDuplexTest.C on the Pi. 
ALSAFullDuplexTest.C does a full duplex pass of audio from the input to 
the output.

Login to your Pi :
$ ssh pi at raspberrypi.local

Setup your /boot/config.txt file comment this out :

#dtparam=audio=on

Setup your /boot/config.txt file add this and reboot :

dtoverlay=audioinjector-addons


Get gtkIOStream sources :

git clone --depth=1 https://github.com/flatmax/gtkiostream.git


Install requirements :

sudo apt install libasound2-dev g++ libeigen3-dev libsox-dev autoconf 
libtool libfftw3-dev pkgconf


Change directory :

cd gtkiostream/


Run the AutoConf script :

./tools/autotools.sh


Configure :

./configure --disable-octave

For the Octo multichannel sound card, change channel count to 8, like so 
in test/ALSAFullDuplexTest.C  :

ch=8; // use this static number of input and output channels.


Compile :

g++ -I . -I include -I/usr/include/alsa -I/usr/include/eigen3 -lasound 
-lsox -lfftw3 test/ALSAFullDuplexTest.C  -o test/ALSAFullDuplexTest

Run :

./test/ALSAFullDuplexTest


Matt


-- 
Checkout the community email list :
https://lists.audioinjector.net/mailman/listinfo/people




More information about the People mailing list