diff options
Diffstat (limited to 'baseline/source/audiobeam/audiobeam.h')
| -rw-r--r-- | baseline/source/audiobeam/audiobeam.h | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/baseline/source/audiobeam/audiobeam.h b/baseline/source/audiobeam/audiobeam.h deleted file mode 100644 index ff2e844..0000000 --- a/baseline/source/audiobeam/audiobeam.h +++ /dev/null | |||
| @@ -1,50 +0,0 @@ | |||
| 1 | #ifndef AUDIOBEAM_MAIN_H | ||
| 2 | #define AUDIOBEAM_MAIN_H | ||
| 3 | |||
| 4 | struct audiobeam_DataQueue { | ||
| 5 | float **sample_queue; | ||
| 6 | int head; | ||
| 7 | int tail; | ||
| 8 | unsigned char full; | ||
| 9 | }; | ||
| 10 | |||
| 11 | |||
| 12 | struct audiobeam_Delays { | ||
| 13 | float **delay_values; | ||
| 14 | long int max_delay; | ||
| 15 | }; | ||
| 16 | |||
| 17 | |||
| 18 | struct audiobeam_PreprocessedDelays { | ||
| 19 | float delay; | ||
| 20 | int low; | ||
| 21 | int high; | ||
| 22 | float offset; | ||
| 23 | }; | ||
| 24 | |||
| 25 | |||
| 26 | #undef FLT_MAX | ||
| 27 | #define FLT_MAX 999e999 | ||
| 28 | |||
| 29 | #define SOUND_SPEED 342 | ||
| 30 | #define SAMPLING_RATE 16000 | ||
| 31 | #define CARTESIAN_DISTANCE(x1,y1,z1,x2,y2,z2) (sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2)+(z1-z2)*(z1-z2))); | ||
| 32 | |||
| 33 | #define NUM_MIC 15 | ||
| 34 | #define ANGLE_ENERGY_WINDOW_SIZE 400 | ||
| 35 | #define GRID_STEP_SIZE 0.003 // .3cm | ||
| 36 | #define NUM_DIRS 7 | ||
| 37 | #define NUM_TILES 16 | ||
| 38 | |||
| 39 | #define MIC_HORIZ_SPACE 0.038257 | ||
| 40 | #define MIC_VERT_SPACE 0.015001 | ||
| 41 | #define TWO23 8388608.0 // 2^23 | ||
| 42 | #define BUFFER_SIZE 384 // No of input-tupels (each with NUM_MIC elements) | ||
| 43 | #define NUM_MIC_IN_CHAIN 32 | ||
| 44 | #define NUM_BOARDS_IN_CHAIN 16 | ||
| 45 | #define INPUT_LENGTH 5760 | ||
| 46 | |||
| 47 | #define INTERPOLATE(low_value, high_value, offset) (((high_value-low_value)*(offset)) + low_value) | ||
| 48 | |||
| 49 | #endif | ||
| 50 | |||
