wip
This commit is contained in:
parent
a9371e16d4
commit
08423de98c
@ -185,7 +185,6 @@ int beep(double freq_hz, double duration_sec)
|
|||||||
if (freq_hz <= 0.0)
|
if (freq_hz <= 0.0)
|
||||||
{
|
{
|
||||||
msleep(duration_sec*1000.);
|
msleep(duration_sec*1000.);
|
||||||
printf (" no tone ");
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
double p1,p2,f1,f2;
|
double p1,p2,f1,f2;
|
||||||
|
@ -50,7 +50,7 @@ int beep_test(void);
|
|||||||
#include <alsa/asoundlib.h>
|
#include <alsa/asoundlib.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#define FRAMES 1024L //16384L
|
#define FRAMES 32L //1024L //16384L
|
||||||
|
|
||||||
int16_t buffer[FRAMES*2]; /* 16bit stereo sound samples */
|
int16_t buffer[FRAMES*2]; /* 16bit stereo sound samples */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user