#include #include #include #include #include "gen_qaudiobuffer.h" #include "_cgo_export.h" QAudioBuffer* QAudioBuffer_new() { return new QAudioBuffer(); } QAudioBuffer* QAudioBuffer_new2(QAudioBuffer* other) { return new QAudioBuffer(*other); } QAudioBuffer* QAudioBuffer_new3(struct miqt_string data, QAudioFormat* format) { QByteArray data_QByteArray(data.data, data.len); return new QAudioBuffer(data_QByteArray, *format); } QAudioBuffer* QAudioBuffer_new4(int numFrames, QAudioFormat* format) { return new QAudioBuffer(static_cast(numFrames), *format); } QAudioBuffer* QAudioBuffer_new5(struct miqt_string data, QAudioFormat* format, long long startTime) { QByteArray data_QByteArray(data.data, data.len); return new QAudioBuffer(data_QByteArray, *format, static_cast(startTime)); } QAudioBuffer* QAudioBuffer_new6(int numFrames, QAudioFormat* format, long long startTime) { return new QAudioBuffer(static_cast(numFrames), *format, static_cast(startTime)); } void QAudioBuffer_OperatorAssign(QAudioBuffer* self, QAudioBuffer* other) { self->operator=(*other); } void QAudioBuffer_Swap(QAudioBuffer* self, QAudioBuffer* other) { self->swap(*other); } bool QAudioBuffer_IsValid(const QAudioBuffer* self) { return self->isValid(); } void QAudioBuffer_Detach(QAudioBuffer* self) { self->detach(); } QAudioFormat* QAudioBuffer_Format(const QAudioBuffer* self) { return new QAudioFormat(self->format()); } ptrdiff_t QAudioBuffer_FrameCount(const QAudioBuffer* self) { qsizetype _ret = self->frameCount(); return static_cast(_ret); } ptrdiff_t QAudioBuffer_SampleCount(const QAudioBuffer* self) { qsizetype _ret = self->sampleCount(); return static_cast(_ret); } ptrdiff_t QAudioBuffer_ByteCount(const QAudioBuffer* self) { qsizetype _ret = self->byteCount(); return static_cast(_ret); } long long QAudioBuffer_Duration(const QAudioBuffer* self) { qint64 _ret = self->duration(); return static_cast(_ret); } long long QAudioBuffer_StartTime(const QAudioBuffer* self) { qint64 _ret = self->startTime(); return static_cast(_ret); } void QAudioBuffer_Delete(QAudioBuffer* self) { delete self; }