nngn
Loading...
Searching...
No Matches
audio.h
Go to the documentation of this file.
1#ifndef NNGN_TOOLS_AUDIO_AUDIO_H
2#define NNGN_TOOLS_AUDIO_AUDIO_H
3
4#include <vector>
5
6#include <QWidget>
7
8namespace nngn {
9
10class AudioWidget : public QWidget {
11 Q_OBJECT
12public:
13 AudioWidget(void);
14 void add(QWidget *w);
15 QSize sizeHint(void) const final { return {640, 400}; }
16public slots:
17 void add_edit(void);
18 void add_pcm(std::vector<std::byte> v);
19 void new_pos(std::size_t i, std::size_t p);
20private:
21 std::vector<std::vector<std::byte>> wavs = {};
22};
23
24}
25
26#endif
Definition audio.h:10
void add(QWidget *w)
Definition audio.cpp:11
void add_pcm(std::vector< std::byte > v)
Definition audio.cpp:14
AudioWidget(void)
Definition audio.cpp:10
void add_edit(void)
Definition audio.cpp:12
QSize sizeHint(void) const final
Definition audio.h:15
std::vector< std::vector< std::byte > > wavs
Definition audio.h:21
void new_pos(std::size_t i, std::size_t p)
Definition audio.cpp:22
for i
Definition font.lua:5
Definition audio.cpp:7
v[1]
Definition math.lua:22
local w
Definition strict.lua:12