2024-11-04 23:15:32 +13:00
# include <QAudioEncoderSettings>
# include <QAudioEncoderSettingsControl>
# include <QList>
2024-11-19 19:29:06 +13:00
# include <QMediaControl>
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>
# include <qaudioencodersettingscontrol.h>
# include "gen_qaudioencodersettingscontrol.h"
2024-12-11 19:55:47 +13:00
2025-01-07 11:30:33 +01:00
# ifdef __cplusplus
extern " C " {
# endif
# ifdef __cplusplus
} /* extern C */
2024-12-11 19:55:47 +13:00
# endif
2024-11-04 23:15:32 +13:00
2024-12-07 17:15:57 +13:00
void QAudioEncoderSettingsControl_virtbase ( QAudioEncoderSettingsControl * src , QMediaControl * * outptr_QMediaControl ) {
* outptr_QMediaControl = static_cast < QMediaControl * > ( src ) ;
}
2025-02-01 13:45:16 +13:00
QMetaObject * QAudioEncoderSettingsControl_metaObject ( const QAudioEncoderSettingsControl * self ) {
2024-11-04 23:15:32 +13:00
return ( QMetaObject * ) self - > metaObject ( ) ;
}
2025-02-01 13:45:16 +13:00
void * QAudioEncoderSettingsControl_metacast ( QAudioEncoderSettingsControl * 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 QAudioEncoderSettingsControl_tr ( const char * s ) {
2024-11-04 23:15:32 +13:00
QString _ret = QAudioEncoderSettingsControl : : 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 QAudioEncoderSettingsControl_trUtf8 ( const char * s ) {
2024-11-04 23:15:32 +13:00
QString _ret = QAudioEncoderSettingsControl : : 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 */ QAudioEncoderSettingsControl_supportedAudioCodecs ( const QAudioEncoderSettingsControl * self ) {
2024-11-04 23:15:32 +13:00
QStringList _ret = self - > supportedAudioCodecs ( ) ;
// 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
struct miqt_string QAudioEncoderSettingsControl_codecDescription ( const QAudioEncoderSettingsControl * self , struct miqt_string codecName ) {
2024-11-04 23:15:32 +13:00
QString codecName_QString = QString : : fromUtf8 ( codecName . data , codecName . len ) ;
QString _ret = self - > codecDescription ( codecName_QString ) ;
// 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 int */ QAudioEncoderSettingsControl_supportedSampleRates ( const QAudioEncoderSettingsControl * self , QAudioEncoderSettings * settings , bool * continuous ) {
2024-11-19 19:29:06 +13:00
QList < int > _ret = self - > supportedSampleRates ( * settings , continuous ) ;
2024-11-04 23:15:32 +13:00
// Convert QList<> from C++ memory to manually-managed C memory
int * _arr = static_cast < int * > ( malloc ( sizeof ( int ) * _ret . length ( ) ) ) ;
for ( size_t i = 0 , e = _ret . length ( ) ; i < e ; + + i ) {
_arr [ i ] = _ret [ i ] ;
}
struct miqt_array _out ;
_out . len = _ret . length ( ) ;
_out . data = static_cast < void * > ( _arr ) ;
return _out ;
}
2025-02-01 13:45:16 +13:00
QAudioEncoderSettings * QAudioEncoderSettingsControl_audioSettings ( const QAudioEncoderSettingsControl * self ) {
2024-11-04 23:15:32 +13:00
return new QAudioEncoderSettings ( self - > audioSettings ( ) ) ;
}
2025-02-01 13:45:16 +13:00
void QAudioEncoderSettingsControl_setAudioSettings ( QAudioEncoderSettingsControl * self , QAudioEncoderSettings * settings ) {
2024-11-04 23:15:32 +13:00
self - > setAudioSettings ( * settings ) ;
}
2025-02-01 13:45:16 +13:00
struct miqt_string QAudioEncoderSettingsControl_tr2 ( const char * s , const char * c ) {
2024-11-04 23:15:32 +13:00
QString _ret = QAudioEncoderSettingsControl : : 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 QAudioEncoderSettingsControl_tr3 ( const char * s , const char * c , int n ) {
2024-11-04 23:15:32 +13:00
QString _ret = QAudioEncoderSettingsControl : : 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 QAudioEncoderSettingsControl_trUtf82 ( const char * s , const char * c ) {
2024-11-04 23:15:32 +13:00
QString _ret = QAudioEncoderSettingsControl : : 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 QAudioEncoderSettingsControl_trUtf83 ( const char * s , const char * c , int n ) {
2024-11-04 23:15:32 +13:00
QString _ret = QAudioEncoderSettingsControl : : 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
void QAudioEncoderSettingsControl_delete ( QAudioEncoderSettingsControl * self ) {
2025-01-18 17:42:41 +13:00
delete self ;
2024-11-04 23:15:32 +13:00
}