From b29dc7281a954d4f6c7a2652e06cf1bc28b27202 Mon Sep 17 00:00:00 2001 From: Gerolf Ziegenhain Date: Mon, 3 Oct 2016 16:23:41 +0200 Subject: [PATCH] cleanup beep --- src/beep.h | 5 ----- src/irmc.c | 8 +------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/src/beep.h b/src/beep.h index 10becfe..e3ebf83 100644 --- a/src/beep.h +++ b/src/beep.h @@ -20,11 +20,6 @@ typedef struct uint32_t freq; } paTestData; -static int patestCallback( const void *inputBuffer, void *outputBuffer, - unsigned long framesPerBuffer, - const PaStreamCallbackTimeInfo* timeInfo, - PaStreamCallbackFlags statusFlags, - void *userData ); void buzzer_set_freq(int frequency); void buzzer_beep(int frequency, int msecs); int buzzer_start(void); diff --git a/src/irmc.c b/src/irmc.c index 24877cc..a5747f4 100644 --- a/src/irmc.c +++ b/src/irmc.c @@ -19,13 +19,6 @@ #include #include -#define BEEP_MORSE -#ifdef BEEP_MORSE - #include -#else - #include "portaudio.h" -#endif - #ifdef __MACH__ #include #include @@ -40,6 +33,7 @@ #define MAXDATASIZE 1024 // max number of bytes we can get at once #include "cwprotocol.h" +#include "beep.h" int serial_status = 0, fd_serial, numbytes;