link to ALSA (libasound) v_0
authorFrantišek Kučera <franta-hg@frantovo.cz>
Fri, 18 Dec 2020 23:28:16 +0100
branchv_0
changeset 3 e238528eb19c
parent 2 f34476ab597f
child 4 4d777d6c8024
link to ALSA (libasound)
AlsaBridge.cpp
AlsaBridge.h
Makefile
--- a/AlsaBridge.cpp	Fri Dec 18 23:19:32 2020 +0100
+++ b/AlsaBridge.cpp	Fri Dec 18 23:28:16 2020 +0100
@@ -16,6 +16,8 @@
  */
 #include <iostream>
 
+#include <alsa/asoundlib.h>
+
 #include "AlsaBridge.h"
 
 namespace djmfix {
--- a/AlsaBridge.h	Fri Dec 18 23:19:32 2020 +0100
+++ b/AlsaBridge.h	Fri Dec 18 23:28:16 2020 +0100
@@ -32,4 +32,4 @@
 AlsaBridge* create(djmfix::DJMFix* djmFix);
 
 }
-}
\ No newline at end of file
+}
--- a/Makefile	Fri Dec 18 23:19:32 2020 +0100
+++ b/Makefile	Fri Dec 18 23:28:16 2020 +0100
@@ -25,4 +25,4 @@
 
 build/djm-fix: DJMFix.cpp DJMFix.h AlsaBridge.cpp AlsaBridge.h djm-fix.cpp
 	mkdir -p build
-	g++ -o $@ DJMFix.cpp AlsaBridge.cpp djm-fix.cpp -lpthread
+	g++ -o $@ DJMFix.cpp AlsaBridge.cpp djm-fix.cpp -lpthread $$(pkg-config --libs --cflags alsa)