From b24c2d5bb347d1f63cb2be8fc124a151c4c86d83 Mon Sep 17 00:00:00 2001 From: Gerolf Ziegenhain Date: Tue, 4 Oct 2016 16:38:04 +0200 Subject: [PATCH] wip --- src/beep.c | 7 ++++--- src/beep.h | 1 - 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/beep.c b/src/beep.c index a2345f5..db544c1 100644 --- a/src/beep.c +++ b/src/beep.c @@ -4,13 +4,13 @@ #include // for usleep() #include "beep.h" - + +#ifdef PORTAUDIO // http://stackoverflow.com/questions/7678470/generating-sound-of-a-particular-frequency-using-gcc-in-ubuntu static PaStream *stream; static paTestData data; - /* This routine will be called by the PortAudio engine when audio is needed. ** It may called at interrupt level on some machines so don't do anything ** that could mess up the system like calling malloc() or free(). @@ -162,7 +162,6 @@ int beep_close() return 0; } - int beep_test(void) { @@ -191,6 +190,8 @@ int beep_test(void) return 0; } +#endif + // Raspi does not work with portaudio?! diff --git a/src/beep.h b/src/beep.h index 97d0dea..605d3e9 100644 --- a/src/beep.h +++ b/src/beep.h @@ -1,4 +1,3 @@ -#include #include #ifdef __MACH__