2024-11-04 23:15:32 +13:00
|
|
|
#include <QAudioDeviceInfo>
|
2024-11-19 19:29:06 +13:00
|
|
|
#include <QChildEvent>
|
|
|
|
#include <QEvent>
|
2024-11-04 23:15:32 +13:00
|
|
|
#include <QList>
|
2024-11-19 19:29:06 +13:00
|
|
|
#include <QMetaMethod>
|
2024-11-04 23:15:32 +13:00
|
|
|
#include <QMetaObject>
|
|
|
|
#include <QObject>
|
|
|
|
#include <QSoundEffect>
|
|
|
|
#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 <QUrl>
|
|
|
|
#include <qsoundeffect.h>
|
|
|
|
#include "gen_qsoundeffect.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_QSoundEffect_sourceChanged(intptr_t);
|
|
|
|
void miqt_exec_callback_QSoundEffect_loopCountChanged(intptr_t);
|
|
|
|
void miqt_exec_callback_QSoundEffect_loopsRemainingChanged(intptr_t);
|
|
|
|
void miqt_exec_callback_QSoundEffect_volumeChanged(intptr_t);
|
|
|
|
void miqt_exec_callback_QSoundEffect_mutedChanged(intptr_t);
|
|
|
|
void miqt_exec_callback_QSoundEffect_loadedChanged(intptr_t);
|
|
|
|
void miqt_exec_callback_QSoundEffect_playingChanged(intptr_t);
|
|
|
|
void miqt_exec_callback_QSoundEffect_statusChanged(intptr_t);
|
|
|
|
void miqt_exec_callback_QSoundEffect_categoryChanged(intptr_t);
|
|
|
|
bool miqt_exec_callback_QSoundEffect_event(QSoundEffect*, intptr_t, QEvent*);
|
|
|
|
bool miqt_exec_callback_QSoundEffect_eventFilter(QSoundEffect*, intptr_t, QObject*, QEvent*);
|
|
|
|
void miqt_exec_callback_QSoundEffect_timerEvent(QSoundEffect*, intptr_t, QTimerEvent*);
|
|
|
|
void miqt_exec_callback_QSoundEffect_childEvent(QSoundEffect*, intptr_t, QChildEvent*);
|
|
|
|
void miqt_exec_callback_QSoundEffect_customEvent(QSoundEffect*, intptr_t, QEvent*);
|
|
|
|
void miqt_exec_callback_QSoundEffect_connectNotify(QSoundEffect*, intptr_t, QMetaMethod*);
|
|
|
|
void miqt_exec_callback_QSoundEffect_disconnectNotify(QSoundEffect*, 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 MiqtVirtualQSoundEffect final : public QSoundEffect {
|
2024-11-19 19:29:06 +13:00
|
|
|
public:
|
|
|
|
|
|
|
|
MiqtVirtualQSoundEffect(): QSoundEffect() {};
|
|
|
|
MiqtVirtualQSoundEffect(const QAudioDeviceInfo& audioDevice): QSoundEffect(audioDevice) {};
|
|
|
|
MiqtVirtualQSoundEffect(QObject* parent): QSoundEffect(parent) {};
|
|
|
|
MiqtVirtualQSoundEffect(const QAudioDeviceInfo& audioDevice, QObject* parent): QSoundEffect(audioDevice, parent) {};
|
|
|
|
|
2025-01-18 17:42:41 +13:00
|
|
|
virtual ~MiqtVirtualQSoundEffect() 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 QSoundEffect::event(event);
|
|
|
|
}
|
|
|
|
|
|
|
|
QEvent* sigval1 = event;
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
bool callback_return_value = miqt_exec_callback_QSoundEffect_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 QSoundEffect::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 QSoundEffect::eventFilter(watched, event);
|
|
|
|
}
|
|
|
|
|
|
|
|
QObject* sigval1 = watched;
|
|
|
|
QEvent* sigval2 = event;
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
bool callback_return_value = miqt_exec_callback_QSoundEffect_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 QSoundEffect::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
|
|
|
QSoundEffect::timerEvent(event);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
QTimerEvent* sigval1 = event;
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
miqt_exec_callback_QSoundEffect_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
|
|
|
|
|
|
|
QSoundEffect::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
|
|
|
QSoundEffect::childEvent(event);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
QChildEvent* sigval1 = event;
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
miqt_exec_callback_QSoundEffect_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
|
|
|
|
|
|
|
QSoundEffect::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
|
|
|
QSoundEffect::customEvent(event);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
QEvent* sigval1 = event;
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
miqt_exec_callback_QSoundEffect_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
|
|
|
|
|
|
|
QSoundEffect::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
|
|
|
QSoundEffect::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_QSoundEffect_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
|
|
|
|
|
|
|
QSoundEffect::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
|
|
|
QSoundEffect::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_QSoundEffect_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
|
|
|
|
|
|
|
QSoundEffect::disconnectNotify(*signal);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2024-12-07 17:15:57 +13:00
|
|
|
QSoundEffect* QSoundEffect_new() {
|
|
|
|
return new MiqtVirtualQSoundEffect();
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
2024-12-07 17:15:57 +13:00
|
|
|
QSoundEffect* QSoundEffect_new2(QAudioDeviceInfo* audioDevice) {
|
|
|
|
return new MiqtVirtualQSoundEffect(*audioDevice);
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
2024-12-07 17:15:57 +13:00
|
|
|
QSoundEffect* QSoundEffect_new3(QObject* parent) {
|
|
|
|
return new MiqtVirtualQSoundEffect(parent);
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
2024-12-07 17:15:57 +13:00
|
|
|
QSoundEffect* QSoundEffect_new4(QAudioDeviceInfo* audioDevice, QObject* parent) {
|
|
|
|
return new MiqtVirtualQSoundEffect(*audioDevice, parent);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QSoundEffect_virtbase(QSoundEffect* 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* QSoundEffect_metaObject(const QSoundEffect* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
return (QMetaObject*) self->metaObject();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void* QSoundEffect_metacast(QSoundEffect* 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 QSoundEffect_tr(const char* s) {
|
2024-11-04 23:15:32 +13:00
|
|
|
QString _ret = QSoundEffect::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
|
|
|
struct miqt_string QSoundEffect_trUtf8(const char* s) {
|
2024-11-04 23:15:32 +13:00
|
|
|
QString _ret = QSoundEffect::trUtf8(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
|
|
|
struct miqt_array /* of struct miqt_string */ QSoundEffect_supportedMimeTypes() {
|
2024-11-04 23:15:32 +13:00
|
|
|
QStringList _ret = QSoundEffect::supportedMimeTypes();
|
|
|
|
// Convert QList<> from C++ memory to manually-managed C memory
|
|
|
|
struct miqt_string* _arr = static_cast<struct miqt_string*>(malloc(sizeof(struct miqt_string) * _ret.length()));
|
|
|
|
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
|
|
|
|
QString _lv_ret = _ret[i];
|
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
|
|
QByteArray _lv_b = _lv_ret.toUtf8();
|
|
|
|
struct miqt_string _lv_ms;
|
|
|
|
_lv_ms.len = _lv_b.length();
|
|
|
|
_lv_ms.data = static_cast<char*>(malloc(_lv_ms.len));
|
|
|
|
memcpy(_lv_ms.data, _lv_b.data(), _lv_ms.len);
|
|
|
|
_arr[i] = _lv_ms;
|
|
|
|
}
|
|
|
|
struct miqt_array _out;
|
|
|
|
_out.len = _ret.length();
|
|
|
|
_out.data = static_cast<void*>(_arr);
|
|
|
|
return _out;
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
QUrl* QSoundEffect_source(const QSoundEffect* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
return new QUrl(self->source());
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QSoundEffect_setSource(QSoundEffect* self, QUrl* url) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->setSource(*url);
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
int QSoundEffect_loopCount(const QSoundEffect* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
return self->loopCount();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
int QSoundEffect_loopsRemaining(const QSoundEffect* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
return self->loopsRemaining();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QSoundEffect_setLoopCount(QSoundEffect* self, int loopCount) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->setLoopCount(static_cast<int>(loopCount));
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
double QSoundEffect_volume(const QSoundEffect* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
qreal _ret = self->volume();
|
|
|
|
return static_cast<double>(_ret);
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QSoundEffect_setVolume(QSoundEffect* self, double volume) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->setVolume(static_cast<qreal>(volume));
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
bool QSoundEffect_isMuted(const QSoundEffect* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
return self->isMuted();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QSoundEffect_setMuted(QSoundEffect* self, bool muted) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->setMuted(muted);
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
bool QSoundEffect_isLoaded(const QSoundEffect* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
return self->isLoaded();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
bool QSoundEffect_isPlaying(const QSoundEffect* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
return self->isPlaying();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
int QSoundEffect_status(const QSoundEffect* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
QSoundEffect::Status _ret = self->status();
|
|
|
|
return static_cast<int>(_ret);
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
struct miqt_string QSoundEffect_category(const QSoundEffect* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
QString _ret = self->category();
|
|
|
|
// 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 QSoundEffect_setCategory(QSoundEffect* self, struct miqt_string category) {
|
2024-11-04 23:15:32 +13:00
|
|
|
QString category_QString = QString::fromUtf8(category.data, category.len);
|
|
|
|
self->setCategory(category_QString);
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QSoundEffect_sourceChanged(QSoundEffect* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->sourceChanged();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QSoundEffect_connect_sourceChanged(QSoundEffect* self, intptr_t slot) {
|
2024-11-19 19:29:06 +13:00
|
|
|
MiqtVirtualQSoundEffect::connect(self, static_cast<void (QSoundEffect::*)()>(&QSoundEffect::sourceChanged), self, [=]() {
|
2025-02-01 13:45:16 +13:00
|
|
|
miqt_exec_callback_QSoundEffect_sourceChanged(slot);
|
2024-11-04 23:15:32 +13:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QSoundEffect_loopCountChanged(QSoundEffect* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->loopCountChanged();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QSoundEffect_connect_loopCountChanged(QSoundEffect* self, intptr_t slot) {
|
2024-11-19 19:29:06 +13:00
|
|
|
MiqtVirtualQSoundEffect::connect(self, static_cast<void (QSoundEffect::*)()>(&QSoundEffect::loopCountChanged), self, [=]() {
|
2025-02-01 13:45:16 +13:00
|
|
|
miqt_exec_callback_QSoundEffect_loopCountChanged(slot);
|
2024-11-04 23:15:32 +13:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QSoundEffect_loopsRemainingChanged(QSoundEffect* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->loopsRemainingChanged();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QSoundEffect_connect_loopsRemainingChanged(QSoundEffect* self, intptr_t slot) {
|
2024-11-19 19:29:06 +13:00
|
|
|
MiqtVirtualQSoundEffect::connect(self, static_cast<void (QSoundEffect::*)()>(&QSoundEffect::loopsRemainingChanged), self, [=]() {
|
2025-02-01 13:45:16 +13:00
|
|
|
miqt_exec_callback_QSoundEffect_loopsRemainingChanged(slot);
|
2024-11-04 23:15:32 +13:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QSoundEffect_volumeChanged(QSoundEffect* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->volumeChanged();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QSoundEffect_connect_volumeChanged(QSoundEffect* self, intptr_t slot) {
|
2024-11-19 19:29:06 +13:00
|
|
|
MiqtVirtualQSoundEffect::connect(self, static_cast<void (QSoundEffect::*)()>(&QSoundEffect::volumeChanged), self, [=]() {
|
2025-02-01 13:45:16 +13:00
|
|
|
miqt_exec_callback_QSoundEffect_volumeChanged(slot);
|
2024-11-04 23:15:32 +13:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QSoundEffect_mutedChanged(QSoundEffect* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->mutedChanged();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QSoundEffect_connect_mutedChanged(QSoundEffect* self, intptr_t slot) {
|
2024-11-19 19:29:06 +13:00
|
|
|
MiqtVirtualQSoundEffect::connect(self, static_cast<void (QSoundEffect::*)()>(&QSoundEffect::mutedChanged), self, [=]() {
|
2025-02-01 13:45:16 +13:00
|
|
|
miqt_exec_callback_QSoundEffect_mutedChanged(slot);
|
2024-11-04 23:15:32 +13:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QSoundEffect_loadedChanged(QSoundEffect* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->loadedChanged();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QSoundEffect_connect_loadedChanged(QSoundEffect* self, intptr_t slot) {
|
2024-11-19 19:29:06 +13:00
|
|
|
MiqtVirtualQSoundEffect::connect(self, static_cast<void (QSoundEffect::*)()>(&QSoundEffect::loadedChanged), self, [=]() {
|
2025-02-01 13:45:16 +13:00
|
|
|
miqt_exec_callback_QSoundEffect_loadedChanged(slot);
|
2024-11-04 23:15:32 +13:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QSoundEffect_playingChanged(QSoundEffect* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->playingChanged();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QSoundEffect_connect_playingChanged(QSoundEffect* self, intptr_t slot) {
|
2024-11-19 19:29:06 +13:00
|
|
|
MiqtVirtualQSoundEffect::connect(self, static_cast<void (QSoundEffect::*)()>(&QSoundEffect::playingChanged), self, [=]() {
|
2025-02-01 13:45:16 +13:00
|
|
|
miqt_exec_callback_QSoundEffect_playingChanged(slot);
|
2024-11-04 23:15:32 +13:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QSoundEffect_statusChanged(QSoundEffect* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->statusChanged();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QSoundEffect_connect_statusChanged(QSoundEffect* self, intptr_t slot) {
|
2024-11-19 19:29:06 +13:00
|
|
|
MiqtVirtualQSoundEffect::connect(self, static_cast<void (QSoundEffect::*)()>(&QSoundEffect::statusChanged), self, [=]() {
|
2025-02-01 13:45:16 +13:00
|
|
|
miqt_exec_callback_QSoundEffect_statusChanged(slot);
|
2024-11-04 23:15:32 +13:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QSoundEffect_categoryChanged(QSoundEffect* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->categoryChanged();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QSoundEffect_connect_categoryChanged(QSoundEffect* self, intptr_t slot) {
|
2024-11-19 19:29:06 +13:00
|
|
|
MiqtVirtualQSoundEffect::connect(self, static_cast<void (QSoundEffect::*)()>(&QSoundEffect::categoryChanged), self, [=]() {
|
2025-02-01 13:45:16 +13:00
|
|
|
miqt_exec_callback_QSoundEffect_categoryChanged(slot);
|
2024-11-04 23:15:32 +13:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QSoundEffect_play(QSoundEffect* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->play();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QSoundEffect_stop(QSoundEffect* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->stop();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
struct miqt_string QSoundEffect_tr2(const char* s, const char* c) {
|
2024-11-04 23:15:32 +13:00
|
|
|
QString _ret = QSoundEffect::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 QSoundEffect_tr3(const char* s, const char* c, int n) {
|
2024-11-04 23:15:32 +13:00
|
|
|
QString _ret = QSoundEffect::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
|
|
|
struct miqt_string QSoundEffect_trUtf82(const char* s, const char* c) {
|
2024-11-04 23:15:32 +13:00
|
|
|
QString _ret = QSoundEffect::trUtf8(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 QSoundEffect_trUtf83(const char* s, const char* c, int n) {
|
2024-11-04 23:15:32 +13:00
|
|
|
QString _ret = QSoundEffect::trUtf8(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 QSoundEffect_override_virtual_event(void* self, intptr_t slot) {
|
2025-01-18 17:57:48 +13:00
|
|
|
MiqtVirtualQSoundEffect* self_cast = dynamic_cast<MiqtVirtualQSoundEffect*>( (QSoundEffect*)(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 QSoundEffect_virtualbase_event(void* self, QEvent* event) {
|
|
|
|
return ( (MiqtVirtualQSoundEffect*)(self) )->virtualbase_event(event);
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
bool QSoundEffect_override_virtual_eventFilter(void* self, intptr_t slot) {
|
2025-01-18 17:57:48 +13:00
|
|
|
MiqtVirtualQSoundEffect* self_cast = dynamic_cast<MiqtVirtualQSoundEffect*>( (QSoundEffect*)(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 QSoundEffect_virtualbase_eventFilter(void* self, QObject* watched, QEvent* event) {
|
|
|
|
return ( (MiqtVirtualQSoundEffect*)(self) )->virtualbase_eventFilter(watched, event);
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
bool QSoundEffect_override_virtual_timerEvent(void* self, intptr_t slot) {
|
2025-01-18 17:57:48 +13:00
|
|
|
MiqtVirtualQSoundEffect* self_cast = dynamic_cast<MiqtVirtualQSoundEffect*>( (QSoundEffect*)(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 QSoundEffect_virtualbase_timerEvent(void* self, QTimerEvent* event) {
|
|
|
|
( (MiqtVirtualQSoundEffect*)(self) )->virtualbase_timerEvent(event);
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
bool QSoundEffect_override_virtual_childEvent(void* self, intptr_t slot) {
|
2025-01-18 17:57:48 +13:00
|
|
|
MiqtVirtualQSoundEffect* self_cast = dynamic_cast<MiqtVirtualQSoundEffect*>( (QSoundEffect*)(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 QSoundEffect_virtualbase_childEvent(void* self, QChildEvent* event) {
|
|
|
|
( (MiqtVirtualQSoundEffect*)(self) )->virtualbase_childEvent(event);
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
bool QSoundEffect_override_virtual_customEvent(void* self, intptr_t slot) {
|
2025-01-18 17:57:48 +13:00
|
|
|
MiqtVirtualQSoundEffect* self_cast = dynamic_cast<MiqtVirtualQSoundEffect*>( (QSoundEffect*)(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 QSoundEffect_virtualbase_customEvent(void* self, QEvent* event) {
|
|
|
|
( (MiqtVirtualQSoundEffect*)(self) )->virtualbase_customEvent(event);
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
bool QSoundEffect_override_virtual_connectNotify(void* self, intptr_t slot) {
|
2025-01-18 17:57:48 +13:00
|
|
|
MiqtVirtualQSoundEffect* self_cast = dynamic_cast<MiqtVirtualQSoundEffect*>( (QSoundEffect*)(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 QSoundEffect_virtualbase_connectNotify(void* self, QMetaMethod* signal) {
|
|
|
|
( (MiqtVirtualQSoundEffect*)(self) )->virtualbase_connectNotify(signal);
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
bool QSoundEffect_override_virtual_disconnectNotify(void* self, intptr_t slot) {
|
2025-01-18 17:57:48 +13:00
|
|
|
MiqtVirtualQSoundEffect* self_cast = dynamic_cast<MiqtVirtualQSoundEffect*>( (QSoundEffect*)(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 QSoundEffect_virtualbase_disconnectNotify(void* self, QMetaMethod* signal) {
|
|
|
|
( (MiqtVirtualQSoundEffect*)(self) )->virtualbase_disconnectNotify(signal);
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QSoundEffect_delete(QSoundEffect* self) {
|
2025-01-18 17:42:41 +13:00
|
|
|
delete self;
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|