2024-11-04 23:15:32 +13:00
|
|
|
#include <QAudioEngine>
|
|
|
|
#include <QAudioRoom>
|
2024-11-19 19:29:06 +13:00
|
|
|
#include <QChildEvent>
|
|
|
|
#include <QEvent>
|
|
|
|
#include <QMetaMethod>
|
2024-11-04 23:15:32 +13:00
|
|
|
#include <QMetaObject>
|
2024-11-19 19:29:06 +13:00
|
|
|
#include <QObject>
|
2024-11-04 23:15:32 +13:00
|
|
|
#include <QQuaternion>
|
|
|
|
#include <QString>
|
|
|
|
#include <QByteArray>
|
|
|
|
#include <cstring>
|
2024-11-19 19:29:06 +13:00
|
|
|
#include <QTimerEvent>
|
2024-11-04 23:15:32 +13:00
|
|
|
#include <QVector3D>
|
|
|
|
#include <qaudioroom.h>
|
|
|
|
#include "gen_qaudioroom.h"
|
2024-12-11 19:55:47 +13:00
|
|
|
|
2025-01-07 11:30:33 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void miqt_exec_callback_QAudioRoom_positionChanged(intptr_t);
|
|
|
|
void miqt_exec_callback_QAudioRoom_dimensionsChanged(intptr_t);
|
|
|
|
void miqt_exec_callback_QAudioRoom_rotationChanged(intptr_t);
|
|
|
|
void miqt_exec_callback_QAudioRoom_wallsChanged(intptr_t);
|
|
|
|
void miqt_exec_callback_QAudioRoom_reflectionGainChanged(intptr_t);
|
|
|
|
void miqt_exec_callback_QAudioRoom_reverbGainChanged(intptr_t);
|
|
|
|
void miqt_exec_callback_QAudioRoom_reverbTimeChanged(intptr_t);
|
|
|
|
void miqt_exec_callback_QAudioRoom_reverbBrightnessChanged(intptr_t);
|
|
|
|
bool miqt_exec_callback_QAudioRoom_event(QAudioRoom*, intptr_t, QEvent*);
|
|
|
|
bool miqt_exec_callback_QAudioRoom_eventFilter(QAudioRoom*, intptr_t, QObject*, QEvent*);
|
|
|
|
void miqt_exec_callback_QAudioRoom_timerEvent(QAudioRoom*, intptr_t, QTimerEvent*);
|
|
|
|
void miqt_exec_callback_QAudioRoom_childEvent(QAudioRoom*, intptr_t, QChildEvent*);
|
|
|
|
void miqt_exec_callback_QAudioRoom_customEvent(QAudioRoom*, intptr_t, QEvent*);
|
|
|
|
void miqt_exec_callback_QAudioRoom_connectNotify(QAudioRoom*, intptr_t, QMetaMethod*);
|
|
|
|
void miqt_exec_callback_QAudioRoom_disconnectNotify(QAudioRoom*, intptr_t, QMetaMethod*);
|
2025-01-07 11:30:33 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
2024-12-11 19:55:47 +13:00
|
|
|
#endif
|
2024-11-04 23:15:32 +13:00
|
|
|
|
2025-01-18 17:42:41 +13:00
|
|
|
class MiqtVirtualQAudioRoom final : public QAudioRoom {
|
2024-11-19 19:29:06 +13:00
|
|
|
public:
|
|
|
|
|
|
|
|
MiqtVirtualQAudioRoom(QAudioEngine* engine): QAudioRoom(engine) {};
|
|
|
|
|
2025-01-18 17:42:41 +13:00
|
|
|
virtual ~MiqtVirtualQAudioRoom() override = default;
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
// cgo.Handle value for overwritten implementation
|
2025-02-01 13:45:16 +13:00
|
|
|
intptr_t handle__event = 0;
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
|
|
virtual bool event(QEvent* event) override {
|
2025-02-01 13:45:16 +13:00
|
|
|
if (handle__event == 0) {
|
2024-11-19 19:29:06 +13:00
|
|
|
return QAudioRoom::event(event);
|
|
|
|
}
|
|
|
|
|
|
|
|
QEvent* sigval1 = event;
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
bool callback_return_value = miqt_exec_callback_QAudioRoom_event(this, handle__event, sigval1);
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
return callback_return_value;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
2025-02-01 13:45:16 +13:00
|
|
|
bool virtualbase_event(QEvent* event) {
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
return QAudioRoom::event(event);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// cgo.Handle value for overwritten implementation
|
2025-02-01 13:45:16 +13:00
|
|
|
intptr_t handle__eventFilter = 0;
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
|
|
virtual bool eventFilter(QObject* watched, QEvent* event) override {
|
2025-02-01 13:45:16 +13:00
|
|
|
if (handle__eventFilter == 0) {
|
2024-11-19 19:29:06 +13:00
|
|
|
return QAudioRoom::eventFilter(watched, event);
|
|
|
|
}
|
|
|
|
|
|
|
|
QObject* sigval1 = watched;
|
|
|
|
QEvent* sigval2 = event;
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
bool callback_return_value = miqt_exec_callback_QAudioRoom_eventFilter(this, handle__eventFilter, sigval1, sigval2);
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
return callback_return_value;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
2025-02-01 13:45:16 +13:00
|
|
|
bool virtualbase_eventFilter(QObject* watched, QEvent* event) {
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
return QAudioRoom::eventFilter(watched, event);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// cgo.Handle value for overwritten implementation
|
2025-02-01 13:45:16 +13:00
|
|
|
intptr_t handle__timerEvent = 0;
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
|
|
virtual void timerEvent(QTimerEvent* event) override {
|
2025-02-01 13:45:16 +13:00
|
|
|
if (handle__timerEvent == 0) {
|
2024-11-19 19:29:06 +13:00
|
|
|
QAudioRoom::timerEvent(event);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
QTimerEvent* sigval1 = event;
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
miqt_exec_callback_QAudioRoom_timerEvent(this, handle__timerEvent, sigval1);
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
2025-02-01 13:45:16 +13:00
|
|
|
void virtualbase_timerEvent(QTimerEvent* event) {
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
QAudioRoom::timerEvent(event);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// cgo.Handle value for overwritten implementation
|
2025-02-01 13:45:16 +13:00
|
|
|
intptr_t handle__childEvent = 0;
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
|
|
virtual void childEvent(QChildEvent* event) override {
|
2025-02-01 13:45:16 +13:00
|
|
|
if (handle__childEvent == 0) {
|
2024-11-19 19:29:06 +13:00
|
|
|
QAudioRoom::childEvent(event);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
QChildEvent* sigval1 = event;
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
miqt_exec_callback_QAudioRoom_childEvent(this, handle__childEvent, sigval1);
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
2025-02-01 13:45:16 +13:00
|
|
|
void virtualbase_childEvent(QChildEvent* event) {
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
QAudioRoom::childEvent(event);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// cgo.Handle value for overwritten implementation
|
2025-02-01 13:45:16 +13:00
|
|
|
intptr_t handle__customEvent = 0;
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
|
|
virtual void customEvent(QEvent* event) override {
|
2025-02-01 13:45:16 +13:00
|
|
|
if (handle__customEvent == 0) {
|
2024-11-19 19:29:06 +13:00
|
|
|
QAudioRoom::customEvent(event);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
QEvent* sigval1 = event;
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
miqt_exec_callback_QAudioRoom_customEvent(this, handle__customEvent, sigval1);
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
2025-02-01 13:45:16 +13:00
|
|
|
void virtualbase_customEvent(QEvent* event) {
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
QAudioRoom::customEvent(event);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// cgo.Handle value for overwritten implementation
|
2025-02-01 13:45:16 +13:00
|
|
|
intptr_t handle__connectNotify = 0;
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
|
|
virtual void connectNotify(const QMetaMethod& signal) override {
|
2025-02-01 13:45:16 +13:00
|
|
|
if (handle__connectNotify == 0) {
|
2024-11-19 19:29:06 +13:00
|
|
|
QAudioRoom::connectNotify(signal);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
const QMetaMethod& signal_ret = signal;
|
|
|
|
// Cast returned reference into pointer
|
|
|
|
QMetaMethod* sigval1 = const_cast<QMetaMethod*>(&signal_ret);
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
miqt_exec_callback_QAudioRoom_connectNotify(this, handle__connectNotify, sigval1);
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
2025-02-01 13:45:16 +13:00
|
|
|
void virtualbase_connectNotify(QMetaMethod* signal) {
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
QAudioRoom::connectNotify(*signal);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// cgo.Handle value for overwritten implementation
|
2025-02-01 13:45:16 +13:00
|
|
|
intptr_t handle__disconnectNotify = 0;
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
|
|
virtual void disconnectNotify(const QMetaMethod& signal) override {
|
2025-02-01 13:45:16 +13:00
|
|
|
if (handle__disconnectNotify == 0) {
|
2024-11-19 19:29:06 +13:00
|
|
|
QAudioRoom::disconnectNotify(signal);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
const QMetaMethod& signal_ret = signal;
|
|
|
|
// Cast returned reference into pointer
|
|
|
|
QMetaMethod* sigval1 = const_cast<QMetaMethod*>(&signal_ret);
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
miqt_exec_callback_QAudioRoom_disconnectNotify(this, handle__disconnectNotify, sigval1);
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
2025-02-01 13:45:16 +13:00
|
|
|
void virtualbase_disconnectNotify(QMetaMethod* signal) {
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
QAudioRoom::disconnectNotify(*signal);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2024-12-07 17:15:57 +13:00
|
|
|
QAudioRoom* QAudioRoom_new(QAudioEngine* engine) {
|
|
|
|
return new MiqtVirtualQAudioRoom(engine);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QAudioRoom_virtbase(QAudioRoom* src, QObject** outptr_QObject) {
|
|
|
|
*outptr_QObject = static_cast<QObject*>(src);
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
QMetaObject* QAudioRoom_metaObject(const QAudioRoom* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
return (QMetaObject*) self->metaObject();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void* QAudioRoom_metacast(QAudioRoom* self, const char* param1) {
|
2024-11-04 23:15:32 +13:00
|
|
|
return self->qt_metacast(param1);
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
struct miqt_string QAudioRoom_tr(const char* s) {
|
2024-11-04 23:15:32 +13:00
|
|
|
QString _ret = QAudioRoom::tr(s);
|
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
struct miqt_string _ms;
|
|
|
|
_ms.len = _b.length();
|
|
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
|
|
return _ms;
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QAudioRoom_setPosition(QAudioRoom* self, QVector3D* pos) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->setPosition(*pos);
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
QVector3D* QAudioRoom_position(const QAudioRoom* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
return new QVector3D(self->position());
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QAudioRoom_setDimensions(QAudioRoom* self, QVector3D* dim) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->setDimensions(*dim);
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
QVector3D* QAudioRoom_dimensions(const QAudioRoom* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
return new QVector3D(self->dimensions());
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QAudioRoom_setRotation(QAudioRoom* self, QQuaternion* q) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->setRotation(*q);
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
QQuaternion* QAudioRoom_rotation(const QAudioRoom* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
return new QQuaternion(self->rotation());
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QAudioRoom_setWallMaterial(QAudioRoom* self, int wall, int material) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->setWallMaterial(static_cast<QAudioRoom::Wall>(wall), static_cast<QAudioRoom::Material>(material));
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
int QAudioRoom_wallMaterial(const QAudioRoom* self, int wall) {
|
2024-11-04 23:15:32 +13:00
|
|
|
QAudioRoom::Material _ret = self->wallMaterial(static_cast<QAudioRoom::Wall>(wall));
|
|
|
|
return static_cast<int>(_ret);
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QAudioRoom_setReflectionGain(QAudioRoom* self, float factor) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->setReflectionGain(static_cast<float>(factor));
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
float QAudioRoom_reflectionGain(const QAudioRoom* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
return self->reflectionGain();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QAudioRoom_setReverbGain(QAudioRoom* self, float factor) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->setReverbGain(static_cast<float>(factor));
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
float QAudioRoom_reverbGain(const QAudioRoom* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
return self->reverbGain();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QAudioRoom_setReverbTime(QAudioRoom* self, float factor) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->setReverbTime(static_cast<float>(factor));
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
float QAudioRoom_reverbTime(const QAudioRoom* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
return self->reverbTime();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QAudioRoom_setReverbBrightness(QAudioRoom* self, float factor) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->setReverbBrightness(static_cast<float>(factor));
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
float QAudioRoom_reverbBrightness(const QAudioRoom* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
return self->reverbBrightness();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QAudioRoom_positionChanged(QAudioRoom* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->positionChanged();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QAudioRoom_connect_positionChanged(QAudioRoom* self, intptr_t slot) {
|
2024-11-19 19:29:06 +13:00
|
|
|
MiqtVirtualQAudioRoom::connect(self, static_cast<void (QAudioRoom::*)()>(&QAudioRoom::positionChanged), self, [=]() {
|
2025-02-01 13:45:16 +13:00
|
|
|
miqt_exec_callback_QAudioRoom_positionChanged(slot);
|
2024-11-04 23:15:32 +13:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QAudioRoom_dimensionsChanged(QAudioRoom* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->dimensionsChanged();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QAudioRoom_connect_dimensionsChanged(QAudioRoom* self, intptr_t slot) {
|
2024-11-19 19:29:06 +13:00
|
|
|
MiqtVirtualQAudioRoom::connect(self, static_cast<void (QAudioRoom::*)()>(&QAudioRoom::dimensionsChanged), self, [=]() {
|
2025-02-01 13:45:16 +13:00
|
|
|
miqt_exec_callback_QAudioRoom_dimensionsChanged(slot);
|
2024-11-04 23:15:32 +13:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QAudioRoom_rotationChanged(QAudioRoom* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->rotationChanged();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QAudioRoom_connect_rotationChanged(QAudioRoom* self, intptr_t slot) {
|
2024-11-19 19:29:06 +13:00
|
|
|
MiqtVirtualQAudioRoom::connect(self, static_cast<void (QAudioRoom::*)()>(&QAudioRoom::rotationChanged), self, [=]() {
|
2025-02-01 13:45:16 +13:00
|
|
|
miqt_exec_callback_QAudioRoom_rotationChanged(slot);
|
2024-11-04 23:15:32 +13:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QAudioRoom_wallsChanged(QAudioRoom* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->wallsChanged();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QAudioRoom_connect_wallsChanged(QAudioRoom* self, intptr_t slot) {
|
2024-11-19 19:29:06 +13:00
|
|
|
MiqtVirtualQAudioRoom::connect(self, static_cast<void (QAudioRoom::*)()>(&QAudioRoom::wallsChanged), self, [=]() {
|
2025-02-01 13:45:16 +13:00
|
|
|
miqt_exec_callback_QAudioRoom_wallsChanged(slot);
|
2024-11-04 23:15:32 +13:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QAudioRoom_reflectionGainChanged(QAudioRoom* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->reflectionGainChanged();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QAudioRoom_connect_reflectionGainChanged(QAudioRoom* self, intptr_t slot) {
|
2024-11-19 19:29:06 +13:00
|
|
|
MiqtVirtualQAudioRoom::connect(self, static_cast<void (QAudioRoom::*)()>(&QAudioRoom::reflectionGainChanged), self, [=]() {
|
2025-02-01 13:45:16 +13:00
|
|
|
miqt_exec_callback_QAudioRoom_reflectionGainChanged(slot);
|
2024-11-04 23:15:32 +13:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QAudioRoom_reverbGainChanged(QAudioRoom* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->reverbGainChanged();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QAudioRoom_connect_reverbGainChanged(QAudioRoom* self, intptr_t slot) {
|
2024-11-19 19:29:06 +13:00
|
|
|
MiqtVirtualQAudioRoom::connect(self, static_cast<void (QAudioRoom::*)()>(&QAudioRoom::reverbGainChanged), self, [=]() {
|
2025-02-01 13:45:16 +13:00
|
|
|
miqt_exec_callback_QAudioRoom_reverbGainChanged(slot);
|
2024-11-04 23:15:32 +13:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QAudioRoom_reverbTimeChanged(QAudioRoom* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->reverbTimeChanged();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QAudioRoom_connect_reverbTimeChanged(QAudioRoom* self, intptr_t slot) {
|
2024-11-19 19:29:06 +13:00
|
|
|
MiqtVirtualQAudioRoom::connect(self, static_cast<void (QAudioRoom::*)()>(&QAudioRoom::reverbTimeChanged), self, [=]() {
|
2025-02-01 13:45:16 +13:00
|
|
|
miqt_exec_callback_QAudioRoom_reverbTimeChanged(slot);
|
2024-11-04 23:15:32 +13:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QAudioRoom_reverbBrightnessChanged(QAudioRoom* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->reverbBrightnessChanged();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QAudioRoom_connect_reverbBrightnessChanged(QAudioRoom* self, intptr_t slot) {
|
2024-11-19 19:29:06 +13:00
|
|
|
MiqtVirtualQAudioRoom::connect(self, static_cast<void (QAudioRoom::*)()>(&QAudioRoom::reverbBrightnessChanged), self, [=]() {
|
2025-02-01 13:45:16 +13:00
|
|
|
miqt_exec_callback_QAudioRoom_reverbBrightnessChanged(slot);
|
2024-11-04 23:15:32 +13:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
struct miqt_string QAudioRoom_tr2(const char* s, const char* c) {
|
2024-11-04 23:15:32 +13:00
|
|
|
QString _ret = QAudioRoom::tr(s, c);
|
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
struct miqt_string _ms;
|
|
|
|
_ms.len = _b.length();
|
|
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
|
|
return _ms;
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
struct miqt_string QAudioRoom_tr3(const char* s, const char* c, int n) {
|
2024-11-04 23:15:32 +13:00
|
|
|
QString _ret = QAudioRoom::tr(s, c, static_cast<int>(n));
|
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
struct miqt_string _ms;
|
|
|
|
_ms.len = _b.length();
|
|
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
|
|
return _ms;
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
bool QAudioRoom_override_virtual_event(void* self, intptr_t slot) {
|
2025-01-18 17:57:48 +13:00
|
|
|
MiqtVirtualQAudioRoom* self_cast = dynamic_cast<MiqtVirtualQAudioRoom*>( (QAudioRoom*)(self) );
|
|
|
|
if (self_cast == nullptr) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
self_cast->handle__event = slot;
|
2025-01-18 17:57:48 +13:00
|
|
|
return true;
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
bool QAudioRoom_virtualbase_event(void* self, QEvent* event) {
|
|
|
|
return ( (MiqtVirtualQAudioRoom*)(self) )->virtualbase_event(event);
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
bool QAudioRoom_override_virtual_eventFilter(void* self, intptr_t slot) {
|
2025-01-18 17:57:48 +13:00
|
|
|
MiqtVirtualQAudioRoom* self_cast = dynamic_cast<MiqtVirtualQAudioRoom*>( (QAudioRoom*)(self) );
|
|
|
|
if (self_cast == nullptr) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
self_cast->handle__eventFilter = slot;
|
2025-01-18 17:57:48 +13:00
|
|
|
return true;
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
bool QAudioRoom_virtualbase_eventFilter(void* self, QObject* watched, QEvent* event) {
|
|
|
|
return ( (MiqtVirtualQAudioRoom*)(self) )->virtualbase_eventFilter(watched, event);
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
bool QAudioRoom_override_virtual_timerEvent(void* self, intptr_t slot) {
|
2025-01-18 17:57:48 +13:00
|
|
|
MiqtVirtualQAudioRoom* self_cast = dynamic_cast<MiqtVirtualQAudioRoom*>( (QAudioRoom*)(self) );
|
|
|
|
if (self_cast == nullptr) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
self_cast->handle__timerEvent = slot;
|
2025-01-18 17:57:48 +13:00
|
|
|
return true;
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QAudioRoom_virtualbase_timerEvent(void* self, QTimerEvent* event) {
|
|
|
|
( (MiqtVirtualQAudioRoom*)(self) )->virtualbase_timerEvent(event);
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
bool QAudioRoom_override_virtual_childEvent(void* self, intptr_t slot) {
|
2025-01-18 17:57:48 +13:00
|
|
|
MiqtVirtualQAudioRoom* self_cast = dynamic_cast<MiqtVirtualQAudioRoom*>( (QAudioRoom*)(self) );
|
|
|
|
if (self_cast == nullptr) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
self_cast->handle__childEvent = slot;
|
2025-01-18 17:57:48 +13:00
|
|
|
return true;
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QAudioRoom_virtualbase_childEvent(void* self, QChildEvent* event) {
|
|
|
|
( (MiqtVirtualQAudioRoom*)(self) )->virtualbase_childEvent(event);
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
bool QAudioRoom_override_virtual_customEvent(void* self, intptr_t slot) {
|
2025-01-18 17:57:48 +13:00
|
|
|
MiqtVirtualQAudioRoom* self_cast = dynamic_cast<MiqtVirtualQAudioRoom*>( (QAudioRoom*)(self) );
|
|
|
|
if (self_cast == nullptr) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
self_cast->handle__customEvent = slot;
|
2025-01-18 17:57:48 +13:00
|
|
|
return true;
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QAudioRoom_virtualbase_customEvent(void* self, QEvent* event) {
|
|
|
|
( (MiqtVirtualQAudioRoom*)(self) )->virtualbase_customEvent(event);
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
bool QAudioRoom_override_virtual_connectNotify(void* self, intptr_t slot) {
|
2025-01-18 17:57:48 +13:00
|
|
|
MiqtVirtualQAudioRoom* self_cast = dynamic_cast<MiqtVirtualQAudioRoom*>( (QAudioRoom*)(self) );
|
|
|
|
if (self_cast == nullptr) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
self_cast->handle__connectNotify = slot;
|
2025-01-18 17:57:48 +13:00
|
|
|
return true;
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QAudioRoom_virtualbase_connectNotify(void* self, QMetaMethod* signal) {
|
|
|
|
( (MiqtVirtualQAudioRoom*)(self) )->virtualbase_connectNotify(signal);
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
bool QAudioRoom_override_virtual_disconnectNotify(void* self, intptr_t slot) {
|
2025-01-18 17:57:48 +13:00
|
|
|
MiqtVirtualQAudioRoom* self_cast = dynamic_cast<MiqtVirtualQAudioRoom*>( (QAudioRoom*)(self) );
|
|
|
|
if (self_cast == nullptr) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
self_cast->handle__disconnectNotify = slot;
|
2025-01-18 17:57:48 +13:00
|
|
|
return true;
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QAudioRoom_virtualbase_disconnectNotify(void* self, QMetaMethod* signal) {
|
|
|
|
( (MiqtVirtualQAudioRoom*)(self) )->virtualbase_disconnectNotify(signal);
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QAudioRoom_delete(QAudioRoom* self) {
|
2025-01-18 17:42:41 +13:00
|
|
|
delete self;
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|