-
Notifications
You must be signed in to change notification settings - Fork 1
/
hrir_cmdline.h
103 lines (75 loc) · 2.13 KB
/
hrir_cmdline.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
/*
Copyright (C) 2024 BrerDawg
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
//hrir_cmdline.h
//v1.01
#ifndef hrir_cmdline_h
#define hrir_cmdline_h
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include <time.h>
#include <locale.h>
#include <string>
#include <vector>
#include <wchar.h>
#include <stdlib.h>
#include <math.h>
//linux code
#ifndef compile_for_windows
//#include <X11/Intrinsic.h>
//#include <X11/StringDefs.h>
//#include <X11/Shell.h>
//#include <X11/Xaw/Form.h>
//#include <X11/Xaw/Command.h>
#define _FILE_OFFSET_BITS 64 //large file handling
//#define _LARGE_FILES
#include <dirent.h>
#include <errno.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <syslog.h> //MakeIniPathFilename(..) needs this
#endif
//windows code
#ifdef compile_for_windows
#include <windows.h>
#include <process.h>
#include <winnls.h>
#include <share.h>
#include <fcntl.h>
#include <io.h>
#include <iostream>
#include <fstream>
#include <conio.h>
#define WC_ERR_INVALID_CHARS 0x0080 //missing from gcc's winnls.h
#endif
#include "globals.h"
#include "GCProfile.h"
#include "audio_formats.h"
#include "filter_code.h"
#include "gc_rtaudio.h"
#include "rt_code.h"
#include <termios.h> //for 'kbhit()'
#include <unistd.h> //for 'kbhit()'
#include <fcntl.h> //for 'kbhit()'
//---
#ifdef use_mysofa
// #include "mysofa.h" //not used
#endif
//---
#include <../src/SOFA.h>
#include <../src/SOFAString.h>
#define cn_layout_max 8
#define cnsAppName "gc_hrtf"
#endif