nngn
Loading...
Searching...
No Matches
worker.h
Go to the documentation of this file.
1#ifndef NNGN_TOOLS_AUDIO_WORKER_H
2#define NNGN_TOOLS_AUDIO_WORKER_H
3
4#include "utils/def.h"
5
6#include "../worker.h"
7
8namespace nngn {
9
10class AudioWorker : public Worker {
11 Q_OBJECT
12signals:
13 void new_graph(std::vector<std::byte> v);
14 void new_pos(std::size_t i, std::size_t p);
15private:
16 enum class Command : u8 {
17 QUIT = 'q', GRAPH = 'g', POS = 'p',
18 };
19 bool cmd(std::string_view s) final;
20 bool cmd_graph(std::stringstream *ss);
21 bool cmd_pos(std::stringstream *ss);
22};
23
24}
25
26#endif
Definition: worker.h:12
bool cmd_graph(std::stringstream *ss)
void new_graph(std::vector< std::byte > v)
void new_pos(std::size_t i, std::size_t p)
bool cmd(std::string_view s) final
bool cmd_pos(std::stringstream *ss)
Command
Definition: worker.h:16
for i
Definition: font.lua:5
p
Definition: input.lua:29
v[1]
Definition: math.lua:19
std::chrono::seconds s
Definition: timing.cpp:6
Definition: audio.cpp:7
std::uint8_t u8
Definition: def.h:12