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__