nngn
Loading...
Searching...
No Matches
pcm.h
Go to the documentation of this file.
1#ifndef NNGN_TOOLS_AUDIO_PCM_H
2#define NNGN_TOOLS_AUDIO_PCM_H
3
4#include <span>
5
6#include <QtCharts/QChartView>
7
8namespace nngn {
9
10class PCMWidget final : public QtCharts::QChartView {
11 Q_OBJECT
12public:
13 PCMWidget(void);
14 void set_pos(std::size_t p);
15public slots:
16 void update(std::span<std::byte> v);
17 void clear(void);
18private:
19 void mousePressEvent(QMouseEvent *e) final;
20 void mouseReleaseEvent(QMouseEvent *e) final;
21 void mouseMoveEvent(QMouseEvent *e) final;
22 void reset_zoom(void);
23 std::size_t rate = {};
24 QPoint last_pos = {};
25 bool pressed = {};
26};
27
28}
29
30#endif
Definition pcm.h:10
void mousePressEvent(QMouseEvent *e) final
Definition pcm.cpp:81
void clear(void)
Definition pcm.cpp:135
std::size_t rate
Definition pcm.h:23
PCMWidget(void)
Definition pcm.cpp:74
void reset_zoom(void)
Definition pcm.cpp:111
void mouseReleaseEvent(QMouseEvent *e) final
Definition pcm.cpp:95
void set_pos(std::size_t p)
Definition pcm.cpp:121
bool pressed
Definition pcm.h:25
void mouseMoveEvent(QMouseEvent *e) final
Definition pcm.cpp:101
QPoint last_pos
Definition pcm.h:24
update
Definition img_common.lua:42
Definition audio.cpp:7
v[1]
Definition math.lua:22
local e
Definition math.lua:4