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
Definition worker.h:10
bool cmd_graph(std::stringstream *ss)
Definition worker.cpp:30
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
Definition worker.cpp:11
bool cmd_pos(std::stringstream *ss)
Definition worker.cpp:43
Command
Definition worker.h:16
for i
Definition font.lua:5
Definition audio.cpp:7
std::uint8_t u8
Definition def.h:12
v[1]
Definition math.lua:22
std::chrono::seconds s
Definition timing.cpp:6