Anklang-0.3.0.dev797+g4e3241f3
anklang-0.3.0.dev797+g4e3241f3
ASE — Anklang Sound Engine (C++)
« « « Anklang Documentation
Loading...
Searching...
No Matches
ase
main.hh
Go to the documentation of this file.
1
// This Source Code Form is licensed MPL-2.0: http://mozilla.org/MPL/2.0
2
#ifndef __ASE_MAIN_HH__
3
#define __ASE_MAIN_HH__
4
5
#include <
ase/platform.hh
>
6
#include <
ase/randomhash.hh
>
7
#include <
ase/regex.hh
>
8
#include <
ase/websocket.hh
>
9
#include <
ase/loop.hh
>
10
#include <
ase/callback.hh
>
11
12
namespace
Ase
{
13
14
// == MainApp ==
15
struct
MainApp
{
16
String
pcm_override, midi_override;
17
WebSocketServer
*web_socket_server =
nullptr
;
18
const
char
*outputfile =
nullptr
;
19
std::vector<String>
args;
20
uint16
websocket_port = 0;
21
int
jsonapi_logflags = 1;
22
bool
norc =
true
;
23
bool
allow_randomization =
true
;
24
bool
list_drivers =
false
;
25
bool
play_autostart =
false
;
26
bool
no_devices =
false
;
27
double
play_autostop = D64MAX;
28
enum
ModeT { SYNTHENGINE, CHECK_INTEGRITY_TESTS };
29
ModeT mode = SYNTHENGINE;
30
};
31
extern
const
MainApp
&App;
32
33
// == Jobs & main loop ==
34
extern
LoopP
main_loop;
35
37
void
main_loop_wakeup
();
39
void
main_loop_autostop_mt
();
40
42
extern
JobQueue
main_jobs
;
43
44
}
// Ase
45
46
#endif
// __ASE_MAIN_HH__
std::atomic
std::string
callback.hh
Ase::WebSocketServer
Definition
websocket.hh:42
loop.hh
Ase
The Anklang C++ API namespace.
Definition
api.hh:9
Ase::main_jobs
JobQueue main_jobs(call_main_loop)
Execute a job callback in the event loop.
Definition
main.hh:42
Ase::main_loop_wakeup
void main_loop_wakeup()
Wake up the event loop.
Definition
main.cc:306
Ase::uint16
uint16_t uint16
A 16-bit unsigned integer.
Definition
cxxaux.hh:23
Ase::main_loop_autostop_mt
void main_loop_autostop_mt()
Stop the event loop after a timeout.
Definition
main.cc:317
platform.hh
randomhash.hh
regex.hh
std::shared_ptr
Ase::JobQueue
Definition
callback.hh:114
Ase::MainApp
Definition
main.hh:15
websocket.hh
« « « Anklang Documentation