[AudioI] Light compilation of ALSA full duplex test from gtkIOStream
Matt
matt at audioinjector.net
Wed Mar 11 10:30:35 AEDT 2020
On 11/3/20 10:01 am, Matt wrote:
> 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
That dtoverlay was for the octo card, you will want to use a different
one for your card if it isn't an octo.
For the original stereo and zero cards :
dtoverlay=audioinjector-wm8731-audio
For the ultra card :
dtoverlay=audioinjector-ultra
For the soon to come Isolated DAC and ADC (I expect it will be) :
dtoverlay=audioinjector-isolated-soundcard
>
>
> 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