2024-11-04 23:15:32 +13:00
# include <QAbstractAudioDeviceInfo>
# include <QAbstractAudioInput>
# include <QAbstractAudioOutput>
# include <QAudioSystemFactoryInterface>
# include <QAudioSystemPlugin>
# include <QByteArray>
2024-11-23 19:34:52 +13:00
# include <QChildEvent>
# include <QEvent>
2024-11-04 23:15:32 +13:00
# include <QList>
2024-11-23 19:34:52 +13:00
# 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 <QString>
# include <QByteArray>
# include <cstring>
2024-11-23 19:34:52 +13:00
# include <QTimerEvent>
2024-11-04 23:15:32 +13:00
# include <qaudiosystemplugin.h>
# include "gen_qaudiosystemplugin.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
struct miqt_array /* of struct miqt_string */ miqt_exec_callback_QAudioSystemPlugin_availableDevices ( const QAudioSystemPlugin * , intptr_t , int ) ;
QAbstractAudioInput * miqt_exec_callback_QAudioSystemPlugin_createInput ( QAudioSystemPlugin * , intptr_t , struct miqt_string ) ;
QAbstractAudioOutput * miqt_exec_callback_QAudioSystemPlugin_createOutput ( QAudioSystemPlugin * , intptr_t , struct miqt_string ) ;
QAbstractAudioDeviceInfo * miqt_exec_callback_QAudioSystemPlugin_createDeviceInfo ( QAudioSystemPlugin * , intptr_t , struct miqt_string , int ) ;
bool miqt_exec_callback_QAudioSystemPlugin_event ( QAudioSystemPlugin * , intptr_t , QEvent * ) ;
bool miqt_exec_callback_QAudioSystemPlugin_eventFilter ( QAudioSystemPlugin * , intptr_t , QObject * , QEvent * ) ;
void miqt_exec_callback_QAudioSystemPlugin_timerEvent ( QAudioSystemPlugin * , intptr_t , QTimerEvent * ) ;
void miqt_exec_callback_QAudioSystemPlugin_childEvent ( QAudioSystemPlugin * , intptr_t , QChildEvent * ) ;
void miqt_exec_callback_QAudioSystemPlugin_customEvent ( QAudioSystemPlugin * , intptr_t , QEvent * ) ;
void miqt_exec_callback_QAudioSystemPlugin_connectNotify ( QAudioSystemPlugin * , intptr_t , QMetaMethod * ) ;
void miqt_exec_callback_QAudioSystemPlugin_disconnectNotify ( QAudioSystemPlugin * , 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-02-01 13:45:16 +13:00
struct miqt_array /* of struct miqt_string */ QAudioSystemFactoryInterface_availableDevices ( const QAudioSystemFactoryInterface * self , int param1 ) {
2024-11-04 23:15:32 +13:00
QList < QByteArray > _ret = self - > availableDevices ( static_cast < QAudio : : Mode > ( param1 ) ) ;
// 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 ) {
QByteArray _lv_qb = _ret [ i ] ;
struct miqt_string _lv_ms ;
_lv_ms . len = _lv_qb . length ( ) ;
_lv_ms . data = static_cast < char * > ( malloc ( _lv_ms . len ) ) ;
memcpy ( _lv_ms . data , _lv_qb . 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
QAbstractAudioInput * QAudioSystemFactoryInterface_createInput ( QAudioSystemFactoryInterface * self , struct miqt_string device ) {
2024-11-04 23:15:32 +13:00
QByteArray device_QByteArray ( device . data , device . len ) ;
return self - > createInput ( device_QByteArray ) ;
}
2025-02-01 13:45:16 +13:00
QAbstractAudioOutput * QAudioSystemFactoryInterface_createOutput ( QAudioSystemFactoryInterface * self , struct miqt_string device ) {
2024-11-04 23:15:32 +13:00
QByteArray device_QByteArray ( device . data , device . len ) ;
return self - > createOutput ( device_QByteArray ) ;
}
2025-02-01 13:45:16 +13:00
QAbstractAudioDeviceInfo * QAudioSystemFactoryInterface_createDeviceInfo ( QAudioSystemFactoryInterface * self , struct miqt_string device , int mode ) {
2024-11-04 23:15:32 +13:00
QByteArray device_QByteArray ( device . data , device . len ) ;
return self - > createDeviceInfo ( device_QByteArray , static_cast < QAudio : : Mode > ( mode ) ) ;
}
2025-02-01 13:45:16 +13:00
void QAudioSystemFactoryInterface_operatorAssign ( QAudioSystemFactoryInterface * self , QAudioSystemFactoryInterface * param1 ) {
2024-11-04 23:15:32 +13:00
self - > operator = ( * param1 ) ;
}
2025-02-01 13:45:16 +13:00
void QAudioSystemFactoryInterface_delete ( QAudioSystemFactoryInterface * self ) {
2025-01-18 17:42:41 +13:00
delete self ;
2024-11-04 23:15:32 +13:00
}
2025-01-18 17:42:41 +13:00
class MiqtVirtualQAudioSystemPlugin final : public QAudioSystemPlugin {
2024-11-23 19:34:52 +13:00
public :
MiqtVirtualQAudioSystemPlugin ( ) : QAudioSystemPlugin ( ) { } ;
MiqtVirtualQAudioSystemPlugin ( QObject * parent ) : QAudioSystemPlugin ( parent ) { } ;
2025-01-18 17:42:41 +13:00
virtual ~ MiqtVirtualQAudioSystemPlugin ( ) override = default ;
2024-11-23 19:34:52 +13:00
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__availableDevices = 0 ;
2024-11-23 19:34:52 +13:00
// Subclass to allow providing a Go implementation
virtual QList < QByteArray > availableDevices ( QAudio : : Mode param1 ) const override {
2025-02-01 13:45:16 +13:00
if ( handle__availableDevices = = 0 ) {
2024-11-23 19:34:52 +13:00
return QList < QByteArray > ( ) ; // Pure virtual, there is no base we can call
}
QAudio : : Mode param1_ret = param1 ;
int sigval1 = static_cast < int > ( param1_ret ) ;
2025-02-01 13:45:16 +13:00
struct miqt_array /* of struct miqt_string */ callback_return_value = miqt_exec_callback_QAudioSystemPlugin_availableDevices ( this , handle__availableDevices , sigval1 ) ;
2024-11-23 19:34:52 +13:00
QList < QByteArray > callback_return_value_QList ;
callback_return_value_QList . reserve ( callback_return_value . len ) ;
struct miqt_string * callback_return_value_arr = static_cast < struct miqt_string * > ( callback_return_value . data ) ;
for ( size_t i = 0 ; i < callback_return_value . len ; + + i ) {
QByteArray callback_return_value_arr_i_QByteArray ( callback_return_value_arr [ i ] . data , callback_return_value_arr [ i ] . len ) ;
callback_return_value_QList . push_back ( callback_return_value_arr_i_QByteArray ) ;
}
return callback_return_value_QList ;
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__createInput = 0 ;
2024-11-23 19:34:52 +13:00
// Subclass to allow providing a Go implementation
virtual QAbstractAudioInput * createInput ( const QByteArray & device ) override {
2025-02-01 13:45:16 +13:00
if ( handle__createInput = = 0 ) {
2024-11-23 19:34:52 +13:00
return nullptr ; // Pure virtual, there is no base we can call
}
const QByteArray device_qb = device ;
struct miqt_string device_ms ;
device_ms . len = device_qb . length ( ) ;
device_ms . data = static_cast < char * > ( malloc ( device_ms . len ) ) ;
memcpy ( device_ms . data , device_qb . data ( ) , device_ms . len ) ;
struct miqt_string sigval1 = device_ms ;
2025-02-01 13:45:16 +13:00
QAbstractAudioInput * callback_return_value = miqt_exec_callback_QAudioSystemPlugin_createInput ( this , handle__createInput , sigval1 ) ;
2024-11-23 19:34:52 +13:00
return callback_return_value ;
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__createOutput = 0 ;
2024-11-23 19:34:52 +13:00
// Subclass to allow providing a Go implementation
virtual QAbstractAudioOutput * createOutput ( const QByteArray & device ) override {
2025-02-01 13:45:16 +13:00
if ( handle__createOutput = = 0 ) {
2024-11-23 19:34:52 +13:00
return nullptr ; // Pure virtual, there is no base we can call
}
const QByteArray device_qb = device ;
struct miqt_string device_ms ;
device_ms . len = device_qb . length ( ) ;
device_ms . data = static_cast < char * > ( malloc ( device_ms . len ) ) ;
memcpy ( device_ms . data , device_qb . data ( ) , device_ms . len ) ;
struct miqt_string sigval1 = device_ms ;
2025-02-01 13:45:16 +13:00
QAbstractAudioOutput * callback_return_value = miqt_exec_callback_QAudioSystemPlugin_createOutput ( this , handle__createOutput , sigval1 ) ;
2024-11-23 19:34:52 +13:00
return callback_return_value ;
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__createDeviceInfo = 0 ;
2024-11-23 19:34:52 +13:00
// Subclass to allow providing a Go implementation
virtual QAbstractAudioDeviceInfo * createDeviceInfo ( const QByteArray & device , QAudio : : Mode mode ) override {
2025-02-01 13:45:16 +13:00
if ( handle__createDeviceInfo = = 0 ) {
2024-11-23 19:34:52 +13:00
return nullptr ; // Pure virtual, there is no base we can call
}
const QByteArray device_qb = device ;
struct miqt_string device_ms ;
device_ms . len = device_qb . length ( ) ;
device_ms . data = static_cast < char * > ( malloc ( device_ms . len ) ) ;
memcpy ( device_ms . data , device_qb . data ( ) , device_ms . len ) ;
struct miqt_string sigval1 = device_ms ;
QAudio : : Mode mode_ret = mode ;
int sigval2 = static_cast < int > ( mode_ret ) ;
2025-02-01 13:45:16 +13:00
QAbstractAudioDeviceInfo * callback_return_value = miqt_exec_callback_QAudioSystemPlugin_createDeviceInfo ( this , handle__createDeviceInfo , sigval1 , sigval2 ) ;
2024-11-23 19:34:52 +13:00
return callback_return_value ;
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__event = 0 ;
2024-11-23 19:34:52 +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-23 19:34:52 +13:00
return QAudioSystemPlugin : : event ( event ) ;
}
QEvent * sigval1 = event ;
2025-02-01 13:45:16 +13:00
bool callback_return_value = miqt_exec_callback_QAudioSystemPlugin_event ( this , handle__event , sigval1 ) ;
2024-11-23 19:34:52 +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-23 19:34:52 +13:00
return QAudioSystemPlugin : : event ( event ) ;
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__eventFilter = 0 ;
2024-11-23 19:34:52 +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-23 19:34:52 +13:00
return QAudioSystemPlugin : : eventFilter ( watched , event ) ;
}
QObject * sigval1 = watched ;
QEvent * sigval2 = event ;
2025-02-01 13:45:16 +13:00
bool callback_return_value = miqt_exec_callback_QAudioSystemPlugin_eventFilter ( this , handle__eventFilter , sigval1 , sigval2 ) ;
2024-11-23 19:34:52 +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-23 19:34:52 +13:00
return QAudioSystemPlugin : : eventFilter ( watched , event ) ;
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__timerEvent = 0 ;
2024-11-23 19:34:52 +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-23 19:34:52 +13:00
QAudioSystemPlugin : : timerEvent ( event ) ;
return ;
}
QTimerEvent * sigval1 = event ;
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QAudioSystemPlugin_timerEvent ( this , handle__timerEvent , sigval1 ) ;
2024-11-23 19:34:52 +13:00
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
void virtualbase_timerEvent ( QTimerEvent * event ) {
2024-11-23 19:34:52 +13:00
QAudioSystemPlugin : : timerEvent ( event ) ;
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__childEvent = 0 ;
2024-11-23 19:34:52 +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-23 19:34:52 +13:00
QAudioSystemPlugin : : childEvent ( event ) ;
return ;
}
QChildEvent * sigval1 = event ;
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QAudioSystemPlugin_childEvent ( this , handle__childEvent , sigval1 ) ;
2024-11-23 19:34:52 +13:00
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
void virtualbase_childEvent ( QChildEvent * event ) {
2024-11-23 19:34:52 +13:00
QAudioSystemPlugin : : childEvent ( event ) ;
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__customEvent = 0 ;
2024-11-23 19:34:52 +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-23 19:34:52 +13:00
QAudioSystemPlugin : : customEvent ( event ) ;
return ;
}
QEvent * sigval1 = event ;
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QAudioSystemPlugin_customEvent ( this , handle__customEvent , sigval1 ) ;
2024-11-23 19:34:52 +13:00
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
void virtualbase_customEvent ( QEvent * event ) {
2024-11-23 19:34:52 +13:00
QAudioSystemPlugin : : customEvent ( event ) ;
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__connectNotify = 0 ;
2024-11-23 19:34:52 +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-23 19:34:52 +13:00
QAudioSystemPlugin : : 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_QAudioSystemPlugin_connectNotify ( this , handle__connectNotify , sigval1 ) ;
2024-11-23 19:34:52 +13:00
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
void virtualbase_connectNotify ( QMetaMethod * signal ) {
2024-11-23 19:34:52 +13:00
QAudioSystemPlugin : : connectNotify ( * signal ) ;
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__disconnectNotify = 0 ;
2024-11-23 19:34:52 +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-23 19:34:52 +13:00
QAudioSystemPlugin : : 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_QAudioSystemPlugin_disconnectNotify ( this , handle__disconnectNotify , sigval1 ) ;
2024-11-23 19:34:52 +13:00
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
void virtualbase_disconnectNotify ( QMetaMethod * signal ) {
2024-11-23 19:34:52 +13:00
QAudioSystemPlugin : : disconnectNotify ( * signal ) ;
}
} ;
2024-12-07 17:15:57 +13:00
QAudioSystemPlugin * QAudioSystemPlugin_new ( ) {
return new MiqtVirtualQAudioSystemPlugin ( ) ;
2024-11-23 19:34:52 +13:00
}
2024-12-07 17:15:57 +13:00
QAudioSystemPlugin * QAudioSystemPlugin_new2 ( QObject * parent ) {
return new MiqtVirtualQAudioSystemPlugin ( parent ) ;
}
void QAudioSystemPlugin_virtbase ( QAudioSystemPlugin * src , QObject * * outptr_QObject , QAudioSystemFactoryInterface * * outptr_QAudioSystemFactoryInterface ) {
* outptr_QObject = static_cast < QObject * > ( src ) ;
* outptr_QAudioSystemFactoryInterface = static_cast < QAudioSystemFactoryInterface * > ( src ) ;
2024-11-23 19:34:52 +13:00
}
2025-02-01 13:45:16 +13:00
QMetaObject * QAudioSystemPlugin_metaObject ( const QAudioSystemPlugin * self ) {
2024-11-04 23:15:32 +13:00
return ( QMetaObject * ) self - > metaObject ( ) ;
}
2025-02-01 13:45:16 +13:00
void * QAudioSystemPlugin_metacast ( QAudioSystemPlugin * 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 QAudioSystemPlugin_tr ( const char * s ) {
2024-11-04 23:15:32 +13:00
QString _ret = QAudioSystemPlugin : : 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 QAudioSystemPlugin_trUtf8 ( const char * s ) {
2024-11-04 23:15:32 +13:00
QString _ret = QAudioSystemPlugin : : 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 */ QAudioSystemPlugin_availableDevices ( const QAudioSystemPlugin * self , int param1 ) {
2024-11-04 23:15:32 +13:00
QList < QByteArray > _ret = self - > availableDevices ( static_cast < QAudio : : Mode > ( param1 ) ) ;
// 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 ) {
QByteArray _lv_qb = _ret [ i ] ;
struct miqt_string _lv_ms ;
_lv_ms . len = _lv_qb . length ( ) ;
_lv_ms . data = static_cast < char * > ( malloc ( _lv_ms . len ) ) ;
memcpy ( _lv_ms . data , _lv_qb . 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
QAbstractAudioInput * QAudioSystemPlugin_createInput ( QAudioSystemPlugin * self , struct miqt_string device ) {
2024-11-04 23:15:32 +13:00
QByteArray device_QByteArray ( device . data , device . len ) ;
return self - > createInput ( device_QByteArray ) ;
}
2025-02-01 13:45:16 +13:00
QAbstractAudioOutput * QAudioSystemPlugin_createOutput ( QAudioSystemPlugin * self , struct miqt_string device ) {
2024-11-04 23:15:32 +13:00
QByteArray device_QByteArray ( device . data , device . len ) ;
return self - > createOutput ( device_QByteArray ) ;
}
2025-02-01 13:45:16 +13:00
QAbstractAudioDeviceInfo * QAudioSystemPlugin_createDeviceInfo ( QAudioSystemPlugin * self , struct miqt_string device , int mode ) {
2024-11-04 23:15:32 +13:00
QByteArray device_QByteArray ( device . data , device . len ) ;
return self - > createDeviceInfo ( device_QByteArray , static_cast < QAudio : : Mode > ( mode ) ) ;
}
2025-02-01 13:45:16 +13:00
struct miqt_string QAudioSystemPlugin_tr2 ( const char * s , const char * c ) {
2024-11-04 23:15:32 +13:00
QString _ret = QAudioSystemPlugin : : 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 QAudioSystemPlugin_tr3 ( const char * s , const char * c , int n ) {
2024-11-04 23:15:32 +13:00
QString _ret = QAudioSystemPlugin : : 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 QAudioSystemPlugin_trUtf82 ( const char * s , const char * c ) {
2024-11-04 23:15:32 +13:00
QString _ret = QAudioSystemPlugin : : 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 QAudioSystemPlugin_trUtf83 ( const char * s , const char * c , int n ) {
2024-11-04 23:15:32 +13:00
QString _ret = QAudioSystemPlugin : : 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 QAudioSystemPlugin_override_virtual_availableDevices ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQAudioSystemPlugin * self_cast = dynamic_cast < MiqtVirtualQAudioSystemPlugin * > ( ( QAudioSystemPlugin * ) ( self ) ) ;
if ( self_cast = = nullptr ) {
return false ;
}
2025-02-01 13:45:16 +13:00
self_cast - > handle__availableDevices = slot ;
2025-01-18 17:57:48 +13:00
return true ;
2024-11-23 19:34:52 +13:00
}
2025-02-01 13:45:16 +13:00
bool QAudioSystemPlugin_override_virtual_createInput ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQAudioSystemPlugin * self_cast = dynamic_cast < MiqtVirtualQAudioSystemPlugin * > ( ( QAudioSystemPlugin * ) ( self ) ) ;
if ( self_cast = = nullptr ) {
return false ;
}
2025-02-01 13:45:16 +13:00
self_cast - > handle__createInput = slot ;
2025-01-18 17:57:48 +13:00
return true ;
2024-11-23 19:34:52 +13:00
}
2025-02-01 13:45:16 +13:00
bool QAudioSystemPlugin_override_virtual_createOutput ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQAudioSystemPlugin * self_cast = dynamic_cast < MiqtVirtualQAudioSystemPlugin * > ( ( QAudioSystemPlugin * ) ( self ) ) ;
if ( self_cast = = nullptr ) {
return false ;
}
2025-02-01 13:45:16 +13:00
self_cast - > handle__createOutput = slot ;
2025-01-18 17:57:48 +13:00
return true ;
2024-11-23 19:34:52 +13:00
}
2025-02-01 13:45:16 +13:00
bool QAudioSystemPlugin_override_virtual_createDeviceInfo ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQAudioSystemPlugin * self_cast = dynamic_cast < MiqtVirtualQAudioSystemPlugin * > ( ( QAudioSystemPlugin * ) ( self ) ) ;
if ( self_cast = = nullptr ) {
return false ;
}
2025-02-01 13:45:16 +13:00
self_cast - > handle__createDeviceInfo = slot ;
2025-01-18 17:57:48 +13:00
return true ;
2024-11-23 19:34:52 +13:00
}
2025-02-01 13:45:16 +13:00
bool QAudioSystemPlugin_override_virtual_event ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQAudioSystemPlugin * self_cast = dynamic_cast < MiqtVirtualQAudioSystemPlugin * > ( ( QAudioSystemPlugin * ) ( 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-23 19:34:52 +13:00
}
2025-02-01 13:45:16 +13:00
bool QAudioSystemPlugin_virtualbase_event ( void * self , QEvent * event ) {
return ( ( MiqtVirtualQAudioSystemPlugin * ) ( self ) ) - > virtualbase_event ( event ) ;
2024-11-23 19:34:52 +13:00
}
2025-02-01 13:45:16 +13:00
bool QAudioSystemPlugin_override_virtual_eventFilter ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQAudioSystemPlugin * self_cast = dynamic_cast < MiqtVirtualQAudioSystemPlugin * > ( ( QAudioSystemPlugin * ) ( 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-23 19:34:52 +13:00
}
2025-02-01 13:45:16 +13:00
bool QAudioSystemPlugin_virtualbase_eventFilter ( void * self , QObject * watched , QEvent * event ) {
return ( ( MiqtVirtualQAudioSystemPlugin * ) ( self ) ) - > virtualbase_eventFilter ( watched , event ) ;
2024-11-23 19:34:52 +13:00
}
2025-02-01 13:45:16 +13:00
bool QAudioSystemPlugin_override_virtual_timerEvent ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQAudioSystemPlugin * self_cast = dynamic_cast < MiqtVirtualQAudioSystemPlugin * > ( ( QAudioSystemPlugin * ) ( 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-23 19:34:52 +13:00
}
2025-02-01 13:45:16 +13:00
void QAudioSystemPlugin_virtualbase_timerEvent ( void * self , QTimerEvent * event ) {
( ( MiqtVirtualQAudioSystemPlugin * ) ( self ) ) - > virtualbase_timerEvent ( event ) ;
2024-11-23 19:34:52 +13:00
}
2025-02-01 13:45:16 +13:00
bool QAudioSystemPlugin_override_virtual_childEvent ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQAudioSystemPlugin * self_cast = dynamic_cast < MiqtVirtualQAudioSystemPlugin * > ( ( QAudioSystemPlugin * ) ( 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-23 19:34:52 +13:00
}
2025-02-01 13:45:16 +13:00
void QAudioSystemPlugin_virtualbase_childEvent ( void * self , QChildEvent * event ) {
( ( MiqtVirtualQAudioSystemPlugin * ) ( self ) ) - > virtualbase_childEvent ( event ) ;
2024-11-23 19:34:52 +13:00
}
2025-02-01 13:45:16 +13:00
bool QAudioSystemPlugin_override_virtual_customEvent ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQAudioSystemPlugin * self_cast = dynamic_cast < MiqtVirtualQAudioSystemPlugin * > ( ( QAudioSystemPlugin * ) ( 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-23 19:34:52 +13:00
}
2025-02-01 13:45:16 +13:00
void QAudioSystemPlugin_virtualbase_customEvent ( void * self , QEvent * event ) {
( ( MiqtVirtualQAudioSystemPlugin * ) ( self ) ) - > virtualbase_customEvent ( event ) ;
2024-11-23 19:34:52 +13:00
}
2025-02-01 13:45:16 +13:00
bool QAudioSystemPlugin_override_virtual_connectNotify ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQAudioSystemPlugin * self_cast = dynamic_cast < MiqtVirtualQAudioSystemPlugin * > ( ( QAudioSystemPlugin * ) ( 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-23 19:34:52 +13:00
}
2025-02-01 13:45:16 +13:00
void QAudioSystemPlugin_virtualbase_connectNotify ( void * self , QMetaMethod * signal ) {
( ( MiqtVirtualQAudioSystemPlugin * ) ( self ) ) - > virtualbase_connectNotify ( signal ) ;
2024-11-23 19:34:52 +13:00
}
2025-02-01 13:45:16 +13:00
bool QAudioSystemPlugin_override_virtual_disconnectNotify ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQAudioSystemPlugin * self_cast = dynamic_cast < MiqtVirtualQAudioSystemPlugin * > ( ( QAudioSystemPlugin * ) ( 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-23 19:34:52 +13:00
}
2025-02-01 13:45:16 +13:00
void QAudioSystemPlugin_virtualbase_disconnectNotify ( void * self , QMetaMethod * signal ) {
( ( MiqtVirtualQAudioSystemPlugin * ) ( self ) ) - > virtualbase_disconnectNotify ( signal ) ;
2024-11-23 19:34:52 +13:00
}
2025-02-01 13:45:16 +13:00
void QAudioSystemPlugin_delete ( QAudioSystemPlugin * self ) {
2025-01-18 17:42:41 +13:00
delete self ;
2024-11-04 23:15:32 +13:00
}