audio checkpoint

This commit is contained in:
2025-12-21 22:49:10 -06:00
parent 9ac5eaaba8
commit 783330990e
8 changed files with 241 additions and 6 deletions

23
src/synth/AudioStream.h Normal file
View File

@@ -0,0 +1,23 @@
#pragma once
#include <QIODevice>
#include "Synth.h"
class AudioStream : public QIODevice
{
Q_OBJECT
public:
explicit AudioStream(Synth *synth, QObject *parent = nullptr);
void start();
void stop();
protected:
qint64 readData(char *data, qint64 maxlen) override;
qint64 writeData(const char *, qint64) override { return 0; }
private:
Synth *synth_;
};