-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathaudio-transfer-client.pro
146 lines (125 loc) · 3.71 KB
/
audio-transfer-client.pro
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
#-------------------------------------------------
#
# Project created by QtCreator 2014-02-17T01:16:41
#
#-------------------------------------------------
# Availables defines for this project:
# - MULTIMEDIA : enable native audio output (mandatory)
# - PULSE : enable pulseaudio via pa_simple api (unix systems only)
# - PULSEASYNC : enable pulseaudio main api support (asynchrone)
# - PORTAUDIO : enable portaudio support
# - DEBUG : enable the debug mode
# - SERVER : enable the built in server (require COMLINE)
# - COMLINE : enable the command line mode
# - GUI : enable the user interface
QT += core gui network
CONFIG += c++11
DEFINES += PULSE PULSEASYNC PORTAUDIO COMLINE SERVER GUI MULTIMEDIA
#DEFINES += GUI
contains(DEFINES, ASIO)
{
HEADERS += modules/asiodevice.h \
modules/moduledevice.h \
modules/filedevice.h
#lib/ASIOSDK2.3/common/asio.h
SOURCES += modules/asiodevice.cpp \
modules/moduledevice.cpp \
modules/filedevice.cpp
#lib/ASIOSDK2.3/common/asio.cpp
}
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets printsupport
TARGET = audio-transfer
TEMPLATE = app
contains(DEFINES,GUI) {
SOURCES += ui/mainwindow.cpp \
ui/graphicgenerator.cpp
HEADERS += ui/mainwindow.h \
ui/graphicgenerator.h
FORMS += ui/mainwindow.ui \
ui/soundanalyser.ui
}
SOURCES += main.cpp\
manager.cpp \
modules/tcpdevice.cpp \
modules/udpdevice.cpp \
modules/pulse.cpp \
modules/zerodevice.cpp \
modules/nativeaudio.cpp \
modules/pipedevice.cpp \
readini.cpp \
audioformat.cpp \
size.cpp \
modules/portaudiodevice.cpp \
modules/pulsedeviceasync.cpp \
circularbuffer.cpp \
modules/circulardevice.cpp \
modules/freqgen.cpp \
modules/filters/volumechange.cpp
HEADERS += manager.h \
main.h \
readini.h \
modules/pulse.h \
modules/zerodevice.h \
modules/tcpdevice.h \
modules/udpdevice.h \
modules/nativeaudio.h \
modules/pipedevice.h \
modules/circulardevice.h \
audioformat.h \
size.h \
modules/portaudiodevice.h \
modules/pulsedeviceasync.h \
circularbuffer.h \
modules/freqgen.h \
modules/filters/volumechange.h
contains(DEFINES,COMLINE) {
CONFIG += console
SOURCES += comline.cpp
HEADERS += comline.h
contains(DEFINES,SERVER) {
SOURCES += server/serversocket.cpp \
server/servermain.cpp \
server/userhandler.cpp \
server/user.cpp \
server/security/serversecurity.cpp \
server/security/flowchecker.cpp
HEADERS += server/serversocket.h \
server/servermain.h \
server/userhandler.h \
server/user.h \
server/security/serversecurity.h \
server/security/flowchecker.h
config.files = server/server.ini
config.path = ${DESTDIR}/etc/audio-transfer/
INSTALLS += config
}
}
#comment thoses lines to disable pulseaudio , for windows it disabled because: pulseaudio is a **** bullshit on windows:
#the windows port is version 1.1 and make audio-transfer crash: go thanks the PA developers who absolutly dont care about win32...
win32 {
contains(DEFINES,PULSE) {
DEFINES -= PULSE
}
DEFINES += WIN32
}
contains(DEFINES,PORTAUDIO) {
LIBS += -lportaudio
}
#if pulseasync was set: we need pulse
contains(DEFINES,PULSEASYNC) {
DEFINES += PULSE
}
contains(DEFINES,PULSE) {
LIBS += -lpulse-simple -lpulse
}
contains(DEFINES,MULTIMEDIA) {
QT += multimedia
}
contains(DEFINES,DEBUG) {
#QMAKE_CFLAGS_DEBUG += -fsanitize=address -fno-omit-frame-pointer -qqdb
#QMAKE_CXXFLAGS_DEBUG += -fsanitize=address -fno-omit-frame-pointer -ggdb
#QMAKE_LFLAGS_DEBUG += -fsanitize=address -fno-omit-frame-pointer -ggdb
QMAKE_CFLAGS_DEBUG += -ggdb -O2
QMAKE_CXXFLAGS_DEBUG += -ggdb -O2
QMAKE_LFLAGS_DEBUG += -ggdb -O2
}