rm osx dir
This commit is contained in:
parent
ba4e67f0a4
commit
405634e645
@ -1,6 +1,6 @@
|
||||
SRC = irmc.c cwprotocol.c
|
||||
OBJ = ${SRC:.c=.o}
|
||||
LDFLAGS = -L/usr/local/lib -L/opt/local/lib -lportaudio -lm -lmorse
|
||||
LDFLAGS = -L/usr/local/lib -L/opt/local/lib -lportaudio -lpthread -lm -lmorse
|
||||
CFLAGS = -I/usr/local/include -I/opt/local/include -Wall
|
||||
INSTALLDIR = ${HOME}/bin
|
||||
|
||||
|
@ -104,8 +104,10 @@ static void StreamFinished( void* userData )
|
||||
}
|
||||
|
||||
/*******************************************************************/
|
||||
int main(void);
|
||||
int main(void)
|
||||
|
||||
void beep_init(void);
|
||||
|
||||
int beep(double freq_hz, double duration_sec)
|
||||
{
|
||||
PaStreamParameters outputParameters;
|
||||
PaStream *stream;
|
||||
@ -155,7 +157,7 @@ int main(void)
|
||||
if( err != paNoError ) goto error;
|
||||
|
||||
printf("Play for %d seconds.\n", NUM_SECONDS );
|
||||
Pa_Sleep( NUM_SECONDS * 1000 );
|
||||
Pa_Sleep( duration_sec * 1000 );
|
||||
|
||||
err = Pa_StopStream( stream );
|
||||
if( err != paNoError ) goto error;
|
||||
|
@ -12,6 +12,7 @@
|
||||
#include <sys/ioctl.h>
|
||||
#include <math.h>
|
||||
#include <fcntl.h>
|
||||
#include <pthread.h>
|
||||
#ifdef BEEP_MORSE
|
||||
#include <morse/beep.h>
|
||||
#else
|
||||
@ -34,11 +35,11 @@
|
||||
#include <mach/mach.h>
|
||||
#endif
|
||||
|
||||
#ifndef BEEP_MORSE
|
||||
#ifndef BEEP_MORSE // does not help!!
|
||||
#include "beep.h"
|
||||
#endif
|
||||
|
||||
#define DEBUG 0
|
||||
#define DEBUG 1
|
||||
|
||||
#define MAXDATASIZE 1024 // max number of bytes we can get at once
|
||||
|
||||
@ -353,8 +354,7 @@ int main(int argc, char *argv[])
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
fcntl(fd_socket, F_SETFL, O_NONBLOCK);
|
||||
fcntl(fd_socket, F_SETFL, O_NONBLOCK);
|
||||
if (p == NULL) {
|
||||
fprintf(stderr, "Failed to connect.\n");
|
||||
return 2;
|
||||
|
Loading…
x
Reference in New Issue
Block a user