Allow 110Hz tones
This commit is contained in:
@@ -47,11 +47,10 @@
|
||||
#define AUDIO_BUFFER_SIZE (AUDIO_SAMPLE_RATE*AUDIO_BUFFER_DURATION/1000)
|
||||
#define AUDIO_BUFFER_COUNT (3)
|
||||
|
||||
#define BEEP_MIN_FREQ (440)
|
||||
#define BEEP_MIN_FREQ (110)
|
||||
#define BEEP_DEFAULT_FREQ (2250)
|
||||
#define BEEP_KEY_UP_FREQ (BEEP_DEFAULT_FREQ+150)
|
||||
#define BEEP_KEY_DOWN_FREQ (BEEP_DEFAULT_FREQ-150)
|
||||
#define BEEP_POINTS_COUNT 100
|
||||
|
||||
#define AUDIO_BUFFER_FREE (0)
|
||||
#define AUDIO_BUFFER_FILLED (1)
|
||||
@@ -105,10 +104,9 @@ class AudioContext {
|
||||
#endif
|
||||
|
||||
struct {
|
||||
int16_t points[BEEP_POINTS_COUNT];
|
||||
uint8_t count;
|
||||
uint8_t idx;
|
||||
uint16_t freq;
|
||||
double step;
|
||||
double idx;
|
||||
double volume;
|
||||
} tone;
|
||||
} state;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user