#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "gen_qmediarecorder.h" #include "_cgo_export.h" QMediaRecorder* QMediaRecorder_new(QMediaObject* mediaObject) { return new QMediaRecorder(mediaObject); } QMediaRecorder* QMediaRecorder_new2(QMediaObject* mediaObject, QObject* parent) { return new QMediaRecorder(mediaObject, parent); } QMetaObject* QMediaRecorder_MetaObject(const QMediaRecorder* self) { return (QMetaObject*) self->metaObject(); } void* QMediaRecorder_Metacast(QMediaRecorder* self, const char* param1) { return self->qt_metacast(param1); } struct miqt_string QMediaRecorder_Tr(const char* s) { QString _ret = QMediaRecorder::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(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } struct miqt_string QMediaRecorder_TrUtf8(const char* s) { QString _ret = QMediaRecorder::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(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } QMediaObject* QMediaRecorder_MediaObject(const QMediaRecorder* self) { return self->mediaObject(); } bool QMediaRecorder_IsAvailable(const QMediaRecorder* self) { return self->isAvailable(); } int QMediaRecorder_Availability(const QMediaRecorder* self) { QMultimedia::AvailabilityStatus _ret = self->availability(); return static_cast(_ret); } QUrl* QMediaRecorder_OutputLocation(const QMediaRecorder* self) { return new QUrl(self->outputLocation()); } bool QMediaRecorder_SetOutputLocation(QMediaRecorder* self, QUrl* location) { return self->setOutputLocation(*location); } QUrl* QMediaRecorder_ActualLocation(const QMediaRecorder* self) { return new QUrl(self->actualLocation()); } int QMediaRecorder_State(const QMediaRecorder* self) { QMediaRecorder::State _ret = self->state(); return static_cast(_ret); } int QMediaRecorder_Status(const QMediaRecorder* self) { QMediaRecorder::Status _ret = self->status(); return static_cast(_ret); } int QMediaRecorder_Error(const QMediaRecorder* self) { QMediaRecorder::Error _ret = self->error(); return static_cast(_ret); } struct miqt_string QMediaRecorder_ErrorString(const QMediaRecorder* self) { QString _ret = self->errorString(); // 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(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } long long QMediaRecorder_Duration(const QMediaRecorder* self) { qint64 _ret = self->duration(); return static_cast(_ret); } bool QMediaRecorder_IsMuted(const QMediaRecorder* self) { return self->isMuted(); } double QMediaRecorder_Volume(const QMediaRecorder* self) { qreal _ret = self->volume(); return static_cast(_ret); } struct miqt_array QMediaRecorder_SupportedContainers(const QMediaRecorder* self) { QStringList _ret = self->supportedContainers(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(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(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(_arr); return _out; } struct miqt_string QMediaRecorder_ContainerDescription(const QMediaRecorder* self, struct miqt_string format) { QString format_QString = QString::fromUtf8(format.data, format.len); QString _ret = self->containerDescription(format_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(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } struct miqt_array QMediaRecorder_SupportedAudioCodecs(const QMediaRecorder* self) { QStringList _ret = self->supportedAudioCodecs(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(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(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(_arr); return _out; } struct miqt_string QMediaRecorder_AudioCodecDescription(const QMediaRecorder* self, struct miqt_string codecName) { QString codecName_QString = QString::fromUtf8(codecName.data, codecName.len); QString _ret = self->audioCodecDescription(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(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } struct miqt_array QMediaRecorder_SupportedAudioSampleRates(const QMediaRecorder* self) { QList _ret = self->supportedAudioSampleRates(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(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(_arr); return _out; } struct miqt_array QMediaRecorder_SupportedVideoCodecs(const QMediaRecorder* self) { QStringList _ret = self->supportedVideoCodecs(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(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(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(_arr); return _out; } struct miqt_string QMediaRecorder_VideoCodecDescription(const QMediaRecorder* self, struct miqt_string codecName) { QString codecName_QString = QString::fromUtf8(codecName.data, codecName.len); QString _ret = self->videoCodecDescription(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(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } struct miqt_array QMediaRecorder_SupportedResolutions(const QMediaRecorder* self) { QList _ret = self->supportedResolutions(); // Convert QList<> from C++ memory to manually-managed C memory QSize** _arr = static_cast(malloc(sizeof(QSize*) * _ret.length())); for (size_t i = 0, e = _ret.length(); i < e; ++i) { _arr[i] = new QSize(_ret[i]); } struct miqt_array _out; _out.len = _ret.length(); _out.data = static_cast(_arr); return _out; } struct miqt_array QMediaRecorder_SupportedFrameRates(const QMediaRecorder* self) { QList _ret = self->supportedFrameRates(); // Convert QList<> from C++ memory to manually-managed C memory double* _arr = static_cast(malloc(sizeof(double) * _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(_arr); return _out; } QAudioEncoderSettings* QMediaRecorder_AudioSettings(const QMediaRecorder* self) { return new QAudioEncoderSettings(self->audioSettings()); } QVideoEncoderSettings* QMediaRecorder_VideoSettings(const QMediaRecorder* self) { return new QVideoEncoderSettings(self->videoSettings()); } struct miqt_string QMediaRecorder_ContainerFormat(const QMediaRecorder* self) { QString _ret = self->containerFormat(); // 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(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } void QMediaRecorder_SetAudioSettings(QMediaRecorder* self, QAudioEncoderSettings* audioSettings) { self->setAudioSettings(*audioSettings); } void QMediaRecorder_SetVideoSettings(QMediaRecorder* self, QVideoEncoderSettings* videoSettings) { self->setVideoSettings(*videoSettings); } void QMediaRecorder_SetContainerFormat(QMediaRecorder* self, struct miqt_string container) { QString container_QString = QString::fromUtf8(container.data, container.len); self->setContainerFormat(container_QString); } void QMediaRecorder_SetEncodingSettings(QMediaRecorder* self, QAudioEncoderSettings* audioSettings) { self->setEncodingSettings(*audioSettings); } bool QMediaRecorder_IsMetaDataAvailable(const QMediaRecorder* self) { return self->isMetaDataAvailable(); } bool QMediaRecorder_IsMetaDataWritable(const QMediaRecorder* self) { return self->isMetaDataWritable(); } QVariant* QMediaRecorder_MetaData(const QMediaRecorder* self, struct miqt_string key) { QString key_QString = QString::fromUtf8(key.data, key.len); return new QVariant(self->metaData(key_QString)); } void QMediaRecorder_SetMetaData(QMediaRecorder* self, struct miqt_string key, QVariant* value) { QString key_QString = QString::fromUtf8(key.data, key.len); self->setMetaData(key_QString, *value); } struct miqt_array QMediaRecorder_AvailableMetaData(const QMediaRecorder* self) { QStringList _ret = self->availableMetaData(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(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(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(_arr); return _out; } void QMediaRecorder_Record(QMediaRecorder* self) { self->record(); } void QMediaRecorder_Pause(QMediaRecorder* self) { self->pause(); } void QMediaRecorder_Stop(QMediaRecorder* self) { self->stop(); } void QMediaRecorder_SetMuted(QMediaRecorder* self, bool muted) { self->setMuted(muted); } void QMediaRecorder_SetVolume(QMediaRecorder* self, double volume) { self->setVolume(static_cast(volume)); } void QMediaRecorder_StateChanged(QMediaRecorder* self, int state) { self->stateChanged(static_cast(state)); } void QMediaRecorder_connect_StateChanged(QMediaRecorder* self, intptr_t slot) { QMediaRecorder::connect(self, static_cast(&QMediaRecorder::stateChanged), self, [=](QMediaRecorder::State state) { QMediaRecorder::State state_ret = state; int sigval1 = static_cast(state_ret); miqt_exec_callback_QMediaRecorder_StateChanged(slot, sigval1); }); } void QMediaRecorder_StatusChanged(QMediaRecorder* self, int status) { self->statusChanged(static_cast(status)); } void QMediaRecorder_connect_StatusChanged(QMediaRecorder* self, intptr_t slot) { QMediaRecorder::connect(self, static_cast(&QMediaRecorder::statusChanged), self, [=](QMediaRecorder::Status status) { QMediaRecorder::Status status_ret = status; int sigval1 = static_cast(status_ret); miqt_exec_callback_QMediaRecorder_StatusChanged(slot, sigval1); }); } void QMediaRecorder_DurationChanged(QMediaRecorder* self, long long duration) { self->durationChanged(static_cast(duration)); } void QMediaRecorder_connect_DurationChanged(QMediaRecorder* self, intptr_t slot) { QMediaRecorder::connect(self, static_cast(&QMediaRecorder::durationChanged), self, [=](qint64 duration) { qint64 duration_ret = duration; long long sigval1 = static_cast(duration_ret); miqt_exec_callback_QMediaRecorder_DurationChanged(slot, sigval1); }); } void QMediaRecorder_MutedChanged(QMediaRecorder* self, bool muted) { self->mutedChanged(muted); } void QMediaRecorder_connect_MutedChanged(QMediaRecorder* self, intptr_t slot) { QMediaRecorder::connect(self, static_cast(&QMediaRecorder::mutedChanged), self, [=](bool muted) { bool sigval1 = muted; miqt_exec_callback_QMediaRecorder_MutedChanged(slot, sigval1); }); } void QMediaRecorder_VolumeChanged(QMediaRecorder* self, double volume) { self->volumeChanged(static_cast(volume)); } void QMediaRecorder_connect_VolumeChanged(QMediaRecorder* self, intptr_t slot) { QMediaRecorder::connect(self, static_cast(&QMediaRecorder::volumeChanged), self, [=](qreal volume) { qreal volume_ret = volume; double sigval1 = static_cast(volume_ret); miqt_exec_callback_QMediaRecorder_VolumeChanged(slot, sigval1); }); } void QMediaRecorder_ActualLocationChanged(QMediaRecorder* self, QUrl* location) { self->actualLocationChanged(*location); } void QMediaRecorder_connect_ActualLocationChanged(QMediaRecorder* self, intptr_t slot) { QMediaRecorder::connect(self, static_cast(&QMediaRecorder::actualLocationChanged), self, [=](const QUrl& location) { const QUrl& location_ret = location; // Cast returned reference into pointer QUrl* sigval1 = const_cast(&location_ret); miqt_exec_callback_QMediaRecorder_ActualLocationChanged(slot, sigval1); }); } void QMediaRecorder_ErrorWithError(QMediaRecorder* self, int error) { self->error(static_cast(error)); } void QMediaRecorder_connect_ErrorWithError(QMediaRecorder* self, intptr_t slot) { QMediaRecorder::connect(self, static_cast(&QMediaRecorder::error), self, [=](QMediaRecorder::Error error) { QMediaRecorder::Error error_ret = error; int sigval1 = static_cast(error_ret); miqt_exec_callback_QMediaRecorder_ErrorWithError(slot, sigval1); }); } void QMediaRecorder_MetaDataAvailableChanged(QMediaRecorder* self, bool available) { self->metaDataAvailableChanged(available); } void QMediaRecorder_connect_MetaDataAvailableChanged(QMediaRecorder* self, intptr_t slot) { QMediaRecorder::connect(self, static_cast(&QMediaRecorder::metaDataAvailableChanged), self, [=](bool available) { bool sigval1 = available; miqt_exec_callback_QMediaRecorder_MetaDataAvailableChanged(slot, sigval1); }); } void QMediaRecorder_MetaDataWritableChanged(QMediaRecorder* self, bool writable) { self->metaDataWritableChanged(writable); } void QMediaRecorder_connect_MetaDataWritableChanged(QMediaRecorder* self, intptr_t slot) { QMediaRecorder::connect(self, static_cast(&QMediaRecorder::metaDataWritableChanged), self, [=](bool writable) { bool sigval1 = writable; miqt_exec_callback_QMediaRecorder_MetaDataWritableChanged(slot, sigval1); }); } void QMediaRecorder_MetaDataChanged(QMediaRecorder* self) { self->metaDataChanged(); } void QMediaRecorder_connect_MetaDataChanged(QMediaRecorder* self, intptr_t slot) { QMediaRecorder::connect(self, static_cast(&QMediaRecorder::metaDataChanged), self, [=]() { miqt_exec_callback_QMediaRecorder_MetaDataChanged(slot); }); } void QMediaRecorder_MetaDataChanged2(QMediaRecorder* self, struct miqt_string key, QVariant* value) { QString key_QString = QString::fromUtf8(key.data, key.len); self->metaDataChanged(key_QString, *value); } void QMediaRecorder_connect_MetaDataChanged2(QMediaRecorder* self, intptr_t slot) { QMediaRecorder::connect(self, static_cast(&QMediaRecorder::metaDataChanged), self, [=](const QString& key, const QVariant& value) { const QString key_ret = key; // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray key_b = key_ret.toUtf8(); struct miqt_string key_ms; key_ms.len = key_b.length(); key_ms.data = static_cast(malloc(key_ms.len)); memcpy(key_ms.data, key_b.data(), key_ms.len); struct miqt_string sigval1 = key_ms; const QVariant& value_ret = value; // Cast returned reference into pointer QVariant* sigval2 = const_cast(&value_ret); miqt_exec_callback_QMediaRecorder_MetaDataChanged2(slot, sigval1, sigval2); }); } void QMediaRecorder_AvailabilityChanged(QMediaRecorder* self, bool available) { self->availabilityChanged(available); } void QMediaRecorder_connect_AvailabilityChanged(QMediaRecorder* self, intptr_t slot) { QMediaRecorder::connect(self, static_cast(&QMediaRecorder::availabilityChanged), self, [=](bool available) { bool sigval1 = available; miqt_exec_callback_QMediaRecorder_AvailabilityChanged(slot, sigval1); }); } void QMediaRecorder_AvailabilityChangedWithAvailability(QMediaRecorder* self, int availability) { self->availabilityChanged(static_cast(availability)); } void QMediaRecorder_connect_AvailabilityChangedWithAvailability(QMediaRecorder* self, intptr_t slot) { QMediaRecorder::connect(self, static_cast(&QMediaRecorder::availabilityChanged), self, [=](QMultimedia::AvailabilityStatus availability) { QMultimedia::AvailabilityStatus availability_ret = availability; int sigval1 = static_cast(availability_ret); miqt_exec_callback_QMediaRecorder_AvailabilityChangedWithAvailability(slot, sigval1); }); } struct miqt_string QMediaRecorder_Tr2(const char* s, const char* c) { QString _ret = QMediaRecorder::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(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } struct miqt_string QMediaRecorder_Tr3(const char* s, const char* c, int n) { QString _ret = QMediaRecorder::tr(s, c, static_cast(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(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } struct miqt_string QMediaRecorder_TrUtf82(const char* s, const char* c) { QString _ret = QMediaRecorder::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(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } struct miqt_string QMediaRecorder_TrUtf83(const char* s, const char* c, int n) { QString _ret = QMediaRecorder::trUtf8(s, c, static_cast(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(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } struct miqt_array QMediaRecorder_SupportedAudioSampleRates1(const QMediaRecorder* self, QAudioEncoderSettings* settings) { QList _ret = self->supportedAudioSampleRates(*settings); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(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(_arr); return _out; } struct miqt_array QMediaRecorder_SupportedAudioSampleRates2(const QMediaRecorder* self, QAudioEncoderSettings* settings, bool* continuous) { QList _ret = self->supportedAudioSampleRates(*settings, continuous); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(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(_arr); return _out; } struct miqt_array QMediaRecorder_SupportedResolutions1(const QMediaRecorder* self, QVideoEncoderSettings* settings) { QList _ret = self->supportedResolutions(*settings); // Convert QList<> from C++ memory to manually-managed C memory QSize** _arr = static_cast(malloc(sizeof(QSize*) * _ret.length())); for (size_t i = 0, e = _ret.length(); i < e; ++i) { _arr[i] = new QSize(_ret[i]); } struct miqt_array _out; _out.len = _ret.length(); _out.data = static_cast(_arr); return _out; } struct miqt_array QMediaRecorder_SupportedResolutions2(const QMediaRecorder* self, QVideoEncoderSettings* settings, bool* continuous) { QList _ret = self->supportedResolutions(*settings, continuous); // Convert QList<> from C++ memory to manually-managed C memory QSize** _arr = static_cast(malloc(sizeof(QSize*) * _ret.length())); for (size_t i = 0, e = _ret.length(); i < e; ++i) { _arr[i] = new QSize(_ret[i]); } struct miqt_array _out; _out.len = _ret.length(); _out.data = static_cast(_arr); return _out; } struct miqt_array QMediaRecorder_SupportedFrameRates1(const QMediaRecorder* self, QVideoEncoderSettings* settings) { QList _ret = self->supportedFrameRates(*settings); // Convert QList<> from C++ memory to manually-managed C memory double* _arr = static_cast(malloc(sizeof(double) * _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(_arr); return _out; } struct miqt_array QMediaRecorder_SupportedFrameRates2(const QMediaRecorder* self, QVideoEncoderSettings* settings, bool* continuous) { QList _ret = self->supportedFrameRates(*settings, continuous); // Convert QList<> from C++ memory to manually-managed C memory double* _arr = static_cast(malloc(sizeof(double) * _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(_arr); return _out; } void QMediaRecorder_SetEncodingSettings2(QMediaRecorder* self, QAudioEncoderSettings* audioSettings, QVideoEncoderSettings* videoSettings) { self->setEncodingSettings(*audioSettings, *videoSettings); } void QMediaRecorder_SetEncodingSettings3(QMediaRecorder* self, QAudioEncoderSettings* audioSettings, QVideoEncoderSettings* videoSettings, struct miqt_string containerMimeType) { QString containerMimeType_QString = QString::fromUtf8(containerMimeType.data, containerMimeType.len); self->setEncodingSettings(*audioSettings, *videoSettings, containerMimeType_QString); } void QMediaRecorder_Delete(QMediaRecorder* self) { delete self; }