Anklang-0.3.0.dev956+gd75ac925
anklang-0.3.0.dev956+gd75ac925
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
#pragma once
3
4
#include <
ase/platform.hh
>
5
#include <
ase/randomhash.hh
>
6
#include <
ase/regex.hh
>
7
#include <
ase/websocket.hh
>
8
#include <
ase/loop.hh
>
9
#include <
ase/callback.hh
>
10
11
namespace
Ase
{
12
13
// == MainApp ==
14
struct
MainApp
{
15
String
pcm_override, midi_override;
16
WebSocketServer
*web_socket_server =
nullptr
;
17
const
char
*outputfile =
nullptr
;
18
std::vector<String>
args;
19
std::vector<String>
ui_tests;
20
String
ui_js;
21
uint16
websocket_port = 0;
22
int
jsonapi_logflags = 1;
23
bool
norc =
true
;
24
bool
allow_randomization =
true
;
25
bool
list_drivers =
false
;
26
bool
play_autostart =
false
;
27
bool
no_devices =
false
;
28
bool
headless =
false
;
29
double
play_autostop = D64MAX;
30
enum
ModeT { SYNTHENGINE, CHECK_INTEGRITY_TESTS };
31
ModeT mode = SYNTHENGINE;
32
};
33
extern
const
MainApp
&App;
34
35
// == Jobs & main loop ==
36
extern
LoopP
main_loop;
37
39
void
main_loop_wakeup
();
41
void
main_loop_autostop_mt
();
42
44
extern
JobQueue
main_jobs
;
45
46
}
// Ase
47
std::atomic
std::string
callback.hh
Ase::WebSocketServer
Definition
websocket.hh:41
loop.hh
Ase
The Anklang C++ API namespace.
Definition
api.hh:8
Ase::main_jobs
JobQueue main_jobs(call_main_loop)
Execute a job callback in the event loop.
Definition
main.hh:44
Ase::main_loop_wakeup
void main_loop_wakeup()
Wake up the event loop.
Definition
main.cc:349
Ase::uint16
uint16_t uint16
A 16-bit unsigned integer.
Definition
cxxaux.hh:22
Ase::main_loop_autostop_mt
void main_loop_autostop_mt()
Stop the event loop after a timeout.
Definition
main.cc:360
platform.hh
randomhash.hh
regex.hh
std::shared_ptr
Ase::JobQueue
Definition
callback.hh:113
Ase::MainApp
Definition
main.hh:14
websocket.hh
« « « Anklang Documentation