/*
 * Interface wrapper code.
 *
 * Generated by SIP 6.6.2
 *
 * Copyright (c) 2022 Riverbank Computing Limited <info@riverbankcomputing.com>
 * 
 * This file is part of PyQt5.
 * 
 * This file may be used under the terms of the GNU General Public License
 * version 3.0 as published by the Free Software Foundation and appearing in
 * the file LICENSE included in the packaging of this file.  Please review the
 * following information to ensure the GNU General Public License version 3.0
 * requirements will be met: http://www.gnu.org/copyleft/gpl.html.
 * 
 * If you do not wish to use this file under the terms of the GPL version 3.0
 * then you may purchase a commercial license.  For more information contact
 * info@riverbankcomputing.com.
 * 
 * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
 * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 */

#include "sipAPIQtMultimedia.h"

#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtMultimedia/qaudiooutput.sip"
#include <qaudiooutput.h>
#line 29 "/build/pyqt5/src/PyQt5-5.15.7/build/QtMultimedia/sipQtMultimediaQAudioOutput.cpp"

#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtMultimedia/qaudioformat.sip"
#include <qaudioformat.h>
#line 33 "/build/pyqt5/src/PyQt5-5.15.7/build/QtMultimedia/sipQtMultimediaQAudioOutput.cpp"
#line 28 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 36 "/build/pyqt5/src/PyQt5-5.15.7/build/QtMultimedia/sipQtMultimediaQAudioOutput.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtMultimedia/qaudiodeviceinfo.sip"
#include <qaudiodeviceinfo.h>
#line 39 "/build/pyqt5/src/PyQt5-5.15.7/build/QtMultimedia/sipQtMultimediaQAudioOutput.cpp"
#line 27 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 42 "/build/pyqt5/src/PyQt5-5.15.7/build/QtMultimedia/sipQtMultimediaQAudioOutput.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtMultimedia/qaudio.sip"
#include <qaudio.h>
#line 45 "/build/pyqt5/src/PyQt5-5.15.7/build/QtMultimedia/sipQtMultimediaQAudioOutput.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 48 "/build/pyqt5/src/PyQt5-5.15.7/build/QtMultimedia/sipQtMultimediaQAudioOutput.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 146 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 53 "/build/pyqt5/src/PyQt5-5.15.7/build/QtMultimedia/sipQtMultimediaQAudioOutput.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 56 "/build/pyqt5/src/PyQt5-5.15.7/build/QtMultimedia/sipQtMultimediaQAudioOutput.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 59 "/build/pyqt5/src/PyQt5-5.15.7/build/QtMultimedia/sipQtMultimediaQAudioOutput.cpp"
#line 247 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 62 "/build/pyqt5/src/PyQt5-5.15.7/build/QtMultimedia/sipQtMultimediaQAudioOutput.cpp"
#line 235 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 65 "/build/pyqt5/src/PyQt5-5.15.7/build/QtMultimedia/sipQtMultimediaQAudioOutput.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 68 "/build/pyqt5/src/PyQt5-5.15.7/build/QtMultimedia/sipQtMultimediaQAudioOutput.cpp"
#line 38 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 71 "/build/pyqt5/src/PyQt5-5.15.7/build/QtMultimedia/sipQtMultimediaQAudioOutput.cpp"
#line 30 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 74 "/build/pyqt5/src/PyQt5-5.15.7/build/QtMultimedia/sipQtMultimediaQAudioOutput.cpp"
#line 149 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 77 "/build/pyqt5/src/PyQt5-5.15.7/build/QtMultimedia/sipQtMultimediaQAudioOutput.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 80 "/build/pyqt5/src/PyQt5-5.15.7/build/QtMultimedia/sipQtMultimediaQAudioOutput.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 83 "/build/pyqt5/src/PyQt5-5.15.7/build/QtMultimedia/sipQtMultimediaQAudioOutput.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 86 "/build/pyqt5/src/PyQt5-5.15.7/build/QtMultimedia/sipQtMultimediaQAudioOutput.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 89 "/build/pyqt5/src/PyQt5-5.15.7/build/QtMultimedia/sipQtMultimediaQAudioOutput.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 92 "/build/pyqt5/src/PyQt5-5.15.7/build/QtMultimedia/sipQtMultimediaQAudioOutput.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 95 "/build/pyqt5/src/PyQt5-5.15.7/build/QtMultimedia/sipQtMultimediaQAudioOutput.cpp"


class sipQAudioOutput : public  ::QAudioOutput
{
public:
    sipQAudioOutput(const  ::QAudioFormat&, ::QObject*);
    sipQAudioOutput(const  ::QAudioDeviceInfo&,const  ::QAudioFormat&, ::QObject*);
    virtual ~sipQAudioOutput();

    int qt_metacall(QMetaObject::Call, int, void **) SIP_OVERRIDE;
    void *qt_metacast(const char *) SIP_OVERRIDE;
    const QMetaObject *metaObject() const SIP_OVERRIDE;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool event( ::QEvent*) SIP_OVERRIDE;
    bool eventFilter( ::QObject*, ::QEvent*) SIP_OVERRIDE;
    void timerEvent( ::QTimerEvent*) SIP_OVERRIDE;
    void childEvent( ::QChildEvent*) SIP_OVERRIDE;
    void customEvent( ::QEvent*) SIP_OVERRIDE;
    void connectNotify(const  ::QMetaMethod&) SIP_OVERRIDE;
    void disconnectNotify(const  ::QMetaMethod&) SIP_OVERRIDE;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQAudioOutput(const sipQAudioOutput &);
    sipQAudioOutput &operator = (const sipQAudioOutput &);

    char sipPyMethods[7];
};

sipQAudioOutput::sipQAudioOutput(const  ::QAudioFormat& a0, ::QObject*a1):  ::QAudioOutput(a0,a1), sipPySelf(SIP_NULLPTR)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQAudioOutput::sipQAudioOutput(const  ::QAudioDeviceInfo& a0,const  ::QAudioFormat& a1, ::QObject*a2):  ::QAudioOutput(a0,a1,a2), sipPySelf(SIP_NULLPTR)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQAudioOutput::~sipQAudioOutput()
{
    sipInstanceDestroyedEx(&sipPySelf);
}

const QMetaObject *sipQAudioOutput::metaObject() const
{
    if (sipGetInterpreter())
        return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtMultimedia_qt_metaobject(sipPySelf,sipType_QAudioOutput);

    return  ::QAudioOutput::metaObject();
}

int sipQAudioOutput::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id =  ::QAudioOutput::qt_metacall(_c,_id,_a);

    if (_id >= 0)
    {
        SIP_BLOCK_THREADS
        _id = sip_QtMultimedia_qt_metacall(sipPySelf,sipType_QAudioOutput,_c,_id,_a);
        SIP_UNBLOCK_THREADS
    }

    return _id;
}

void *sipQAudioOutput::qt_metacast(const char *_clname)
{
    void *sipCpp;

    return (sip_QtMultimedia_qt_metacast(sipPySelf, sipType_QAudioOutput, _clname, &sipCpp) ? sipCpp :  ::QAudioOutput::qt_metacast(_clname));
}

bool sipQAudioOutput::event( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[0], &sipPySelf, SIP_NULLPTR, sipName_event);

    if (!sipMeth)
        return  ::QAudioOutput::event(a0);

    extern bool sipVH_QtMultimedia_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    return sipVH_QtMultimedia_10(sipGILState, sipImportedVirtErrorHandlers_QtMultimedia_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

bool sipQAudioOutput::eventFilter( ::QObject*a0, ::QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[1], &sipPySelf, SIP_NULLPTR, sipName_eventFilter);

    if (!sipMeth)
        return  ::QAudioOutput::eventFilter(a0,a1);

    extern bool sipVH_QtMultimedia_9(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

    return sipVH_QtMultimedia_9(sipGILState, sipImportedVirtErrorHandlers_QtMultimedia_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

void sipQAudioOutput::timerEvent( ::QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[2], &sipPySelf, SIP_NULLPTR, sipName_timerEvent);

    if (!sipMeth)
    {
         ::QAudioOutput::timerEvent(a0);
        return;
    }

    extern void sipVH_QtMultimedia_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_QtMultimedia_8(sipGILState, sipImportedVirtErrorHandlers_QtMultimedia_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQAudioOutput::childEvent( ::QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[3], &sipPySelf, SIP_NULLPTR, sipName_childEvent);

    if (!sipMeth)
    {
         ::QAudioOutput::childEvent(a0);
        return;
    }

    extern void sipVH_QtMultimedia_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_QtMultimedia_7(sipGILState, sipImportedVirtErrorHandlers_QtMultimedia_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQAudioOutput::customEvent( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[4], &sipPySelf, SIP_NULLPTR, sipName_customEvent);

    if (!sipMeth)
    {
         ::QAudioOutput::customEvent(a0);
        return;
    }

    extern void sipVH_QtMultimedia_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_QtMultimedia_6(sipGILState, sipImportedVirtErrorHandlers_QtMultimedia_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQAudioOutput::connectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[5], &sipPySelf, SIP_NULLPTR, sipName_connectNotify);

    if (!sipMeth)
    {
         ::QAudioOutput::connectNotify(a0);
        return;
    }

    extern void sipVH_QtMultimedia_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtMultimedia_5(sipGILState, sipImportedVirtErrorHandlers_QtMultimedia_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQAudioOutput::disconnectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[6], &sipPySelf, SIP_NULLPTR, sipName_disconnectNotify);

    if (!sipMeth)
    {
         ::QAudioOutput::disconnectNotify(a0);
        return;
    }

    extern void sipVH_QtMultimedia_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtMultimedia_5(sipGILState, sipImportedVirtErrorHandlers_QtMultimedia_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}


PyDoc_STRVAR(doc_QAudioOutput_format, "format(self) -> QAudioFormat");

extern "C" {static PyObject *meth_QAudioOutput_format(PyObject *, PyObject *);}
static PyObject *meth_QAudioOutput_format(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QAudioOutput *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAudioOutput, &sipCpp))
        {
             ::QAudioFormat*sipRes;

            sipRes = new  ::QAudioFormat(sipCpp->format());

            return sipConvertFromNewType(sipRes,sipType_QAudioFormat,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QAudioOutput, sipName_format, doc_QAudioOutput_format);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QAudioOutput_start, "start(self, QIODevice)\n"
"start(self) -> QIODevice");

extern "C" {static PyObject *meth_QAudioOutput_start(PyObject *, PyObject *);}
static PyObject *meth_QAudioOutput_start(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
         ::QIODevice* a0;
         ::QAudioOutput *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_QAudioOutput, &sipCpp, sipType_QIODevice, &a0))
        {
            sipCpp->start(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
         ::QAudioOutput *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAudioOutput, &sipCpp))
        {
             ::QIODevice*sipRes;

            sipRes = sipCpp->start();

            return sipConvertFromType(sipRes,sipType_QIODevice,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QAudioOutput, sipName_start, doc_QAudioOutput_start);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QAudioOutput_stop, "stop(self)");

extern "C" {static PyObject *meth_QAudioOutput_stop(PyObject *, PyObject *);}
static PyObject *meth_QAudioOutput_stop(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
         ::QAudioOutput *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAudioOutput, &sipCpp))
        {
            sipCpp->stop();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QAudioOutput, sipName_stop, doc_QAudioOutput_stop);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QAudioOutput_reset, "reset(self)");

extern "C" {static PyObject *meth_QAudioOutput_reset(PyObject *, PyObject *);}
static PyObject *meth_QAudioOutput_reset(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
         ::QAudioOutput *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAudioOutput, &sipCpp))
        {
            sipCpp->reset();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QAudioOutput, sipName_reset, doc_QAudioOutput_reset);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QAudioOutput_suspend, "suspend(self)");

extern "C" {static PyObject *meth_QAudioOutput_suspend(PyObject *, PyObject *);}
static PyObject *meth_QAudioOutput_suspend(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
         ::QAudioOutput *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAudioOutput, &sipCpp))
        {
            sipCpp->suspend();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QAudioOutput, sipName_suspend, doc_QAudioOutput_suspend);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QAudioOutput_resume, "resume(self)");

extern "C" {static PyObject *meth_QAudioOutput_resume(PyObject *, PyObject *);}
static PyObject *meth_QAudioOutput_resume(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
         ::QAudioOutput *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAudioOutput, &sipCpp))
        {
            sipCpp->resume();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QAudioOutput, sipName_resume, doc_QAudioOutput_resume);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QAudioOutput_setBufferSize, "setBufferSize(self, int)");

extern "C" {static PyObject *meth_QAudioOutput_setBufferSize(PyObject *, PyObject *);}
static PyObject *meth_QAudioOutput_setBufferSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        int a0;
         ::QAudioOutput *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QAudioOutput, &sipCpp, &a0))
        {
            sipCpp->setBufferSize(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QAudioOutput, sipName_setBufferSize, doc_QAudioOutput_setBufferSize);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QAudioOutput_bufferSize, "bufferSize(self) -> int");

extern "C" {static PyObject *meth_QAudioOutput_bufferSize(PyObject *, PyObject *);}
static PyObject *meth_QAudioOutput_bufferSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QAudioOutput *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAudioOutput, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->bufferSize();

            return PyLong_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QAudioOutput, sipName_bufferSize, doc_QAudioOutput_bufferSize);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QAudioOutput_bytesFree, "bytesFree(self) -> int");

extern "C" {static PyObject *meth_QAudioOutput_bytesFree(PyObject *, PyObject *);}
static PyObject *meth_QAudioOutput_bytesFree(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QAudioOutput *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAudioOutput, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->bytesFree();

            return PyLong_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QAudioOutput, sipName_bytesFree, doc_QAudioOutput_bytesFree);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QAudioOutput_periodSize, "periodSize(self) -> int");

extern "C" {static PyObject *meth_QAudioOutput_periodSize(PyObject *, PyObject *);}
static PyObject *meth_QAudioOutput_periodSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QAudioOutput *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAudioOutput, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->periodSize();

            return PyLong_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QAudioOutput, sipName_periodSize, doc_QAudioOutput_periodSize);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QAudioOutput_setNotifyInterval, "setNotifyInterval(self, int)");

extern "C" {static PyObject *meth_QAudioOutput_setNotifyInterval(PyObject *, PyObject *);}
static PyObject *meth_QAudioOutput_setNotifyInterval(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        int a0;
         ::QAudioOutput *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QAudioOutput, &sipCpp, &a0))
        {
            sipCpp->setNotifyInterval(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QAudioOutput, sipName_setNotifyInterval, doc_QAudioOutput_setNotifyInterval);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QAudioOutput_notifyInterval, "notifyInterval(self) -> int");

extern "C" {static PyObject *meth_QAudioOutput_notifyInterval(PyObject *, PyObject *);}
static PyObject *meth_QAudioOutput_notifyInterval(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QAudioOutput *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAudioOutput, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->notifyInterval();

            return PyLong_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QAudioOutput, sipName_notifyInterval, doc_QAudioOutput_notifyInterval);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QAudioOutput_processedUSecs, "processedUSecs(self) -> int");

extern "C" {static PyObject *meth_QAudioOutput_processedUSecs(PyObject *, PyObject *);}
static PyObject *meth_QAudioOutput_processedUSecs(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QAudioOutput *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAudioOutput, &sipCpp))
        {
             ::qint64 sipRes;

            sipRes = sipCpp->processedUSecs();

            return PyLong_FromLongLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QAudioOutput, sipName_processedUSecs, doc_QAudioOutput_processedUSecs);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QAudioOutput_elapsedUSecs, "elapsedUSecs(self) -> int");

extern "C" {static PyObject *meth_QAudioOutput_elapsedUSecs(PyObject *, PyObject *);}
static PyObject *meth_QAudioOutput_elapsedUSecs(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QAudioOutput *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAudioOutput, &sipCpp))
        {
             ::qint64 sipRes;

            sipRes = sipCpp->elapsedUSecs();

            return PyLong_FromLongLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QAudioOutput, sipName_elapsedUSecs, doc_QAudioOutput_elapsedUSecs);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QAudioOutput_error, "error(self) -> QAudio.Error");

extern "C" {static PyObject *meth_QAudioOutput_error(PyObject *, PyObject *);}
static PyObject *meth_QAudioOutput_error(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QAudioOutput *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAudioOutput, &sipCpp))
        {
             ::QAudio::Error sipRes;

            sipRes = sipCpp->error();

            return sipConvertFromEnum(static_cast<int>(sipRes), sipType_QAudio_Error);
        }
    }

    sipNoMethod(sipParseErr, sipName_QAudioOutput, sipName_error, doc_QAudioOutput_error);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QAudioOutput_state, "state(self) -> QAudio.State");

extern "C" {static PyObject *meth_QAudioOutput_state(PyObject *, PyObject *);}
static PyObject *meth_QAudioOutput_state(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QAudioOutput *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAudioOutput, &sipCpp))
        {
             ::QAudio::State sipRes;

            sipRes = sipCpp->state();

            return sipConvertFromEnum(static_cast<int>(sipRes), sipType_QAudio_State);
        }
    }

    sipNoMethod(sipParseErr, sipName_QAudioOutput, sipName_state, doc_QAudioOutput_state);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QAudioOutput_setVolume, "setVolume(self, float)");

extern "C" {static PyObject *meth_QAudioOutput_setVolume(PyObject *, PyObject *);}
static PyObject *meth_QAudioOutput_setVolume(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
         ::qreal a0;
         ::QAudioOutput *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QAudioOutput, &sipCpp, &a0))
        {
            sipCpp->setVolume(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QAudioOutput, sipName_setVolume, doc_QAudioOutput_setVolume);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QAudioOutput_volume, "volume(self) -> float");

extern "C" {static PyObject *meth_QAudioOutput_volume(PyObject *, PyObject *);}
static PyObject *meth_QAudioOutput_volume(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QAudioOutput *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAudioOutput, &sipCpp))
        {
             ::qreal sipRes;

            sipRes = sipCpp->volume();

            return PyFloat_FromDouble(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QAudioOutput, sipName_volume, doc_QAudioOutput_volume);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QAudioOutput_category, "category(self) -> str");

extern "C" {static PyObject *meth_QAudioOutput_category(PyObject *, PyObject *);}
static PyObject *meth_QAudioOutput_category(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QAudioOutput *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAudioOutput, &sipCpp))
        {
             ::QString*sipRes;

            sipRes = new  ::QString(sipCpp->category());

            return sipConvertFromNewType(sipRes,sipType_QString,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QAudioOutput, sipName_category, doc_QAudioOutput_category);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QAudioOutput_setCategory, "setCategory(self, str)");

extern "C" {static PyObject *meth_QAudioOutput_setCategory(PyObject *, PyObject *);}
static PyObject *meth_QAudioOutput_setCategory(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QString* a0;
        int a0State = 0;
         ::QAudioOutput *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QAudioOutput, &sipCpp, sipType_QString, &a0, &a0State))
        {
            sipCpp->setCategory(*a0);
            sipReleaseType(const_cast< ::QString *>(a0), sipType_QString, a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QAudioOutput, sipName_setCategory, doc_QAudioOutput_setCategory);

    return SIP_NULLPTR;
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_QAudioOutput(void *, const sipTypeDef *);}
static void *cast_QAudioOutput(void *sipCppV, const sipTypeDef *targetType)
{
     ::QAudioOutput *sipCpp = reinterpret_cast< ::QAudioOutput *>(sipCppV);

    if (targetType == sipType_QAudioOutput)
        return sipCppV;

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return SIP_NULLPTR;
}


/* Call the instance's destructor. */
extern "C" {static void release_QAudioOutput(void *, int);}
static void release_QAudioOutput(void *sipCppV, int)
{
     ::QAudioOutput *sipCpp = reinterpret_cast< ::QAudioOutput *>(sipCppV);

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();
}


extern "C" {static void *array_QAudioOutput(Py_ssize_t);}
static void *array_QAudioOutput(Py_ssize_t sipNrElem)
{
    return new  ::QAudioOutput[sipNrElem];
}


extern "C" {static void array_delete_QAudioOutput(void *);}
static void array_delete_QAudioOutput(void *sipCpp)
{
    delete[] reinterpret_cast< ::QAudioOutput *>(sipCpp);
}


extern "C" {static void dealloc_QAudioOutput(sipSimpleWrapper *);}
static void dealloc_QAudioOutput(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQAudioOutput *>(sipGetAddress(sipSelf))->sipPySelf = SIP_NULLPTR;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QAudioOutput(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


extern "C" {static void *init_type_QAudioOutput(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QAudioOutput(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQAudioOutput *sipCpp = SIP_NULLPTR;

    {
        const  ::QAudioFormat& a0def = QAudioFormat();
        const  ::QAudioFormat* a0 = &a0def;
         ::QObject* a1 = 0;

        static const char *sipKwdList[] = {
            sipName_format,
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|J9JH", sipType_QAudioFormat, &a0, sipType_QObject, &a1, sipOwner))
        {
            sipCpp = new sipQAudioOutput(*a0,a1);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const  ::QAudioDeviceInfo* a0;
        const  ::QAudioFormat& a1def = QAudioFormat();
        const  ::QAudioFormat* a1 = &a1def;
         ::QObject* a2 = 0;

        static const char *sipKwdList[] = {
            SIP_NULLPTR,
            sipName_format,
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J9|J9JH", sipType_QAudioDeviceInfo, &a0, sipType_QAudioFormat, &a1, sipType_QObject, &a2, sipOwner))
        {
            sipCpp = new sipQAudioOutput(*a0,*a1,a2);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QAudioOutput[] = {{9, 0, 1}};


static PyMethodDef methods_QAudioOutput[] = {
    {sipName_bufferSize, meth_QAudioOutput_bufferSize, METH_VARARGS, doc_QAudioOutput_bufferSize},
    {sipName_bytesFree, meth_QAudioOutput_bytesFree, METH_VARARGS, doc_QAudioOutput_bytesFree},
    {sipName_category, meth_QAudioOutput_category, METH_VARARGS, doc_QAudioOutput_category},
    {sipName_elapsedUSecs, meth_QAudioOutput_elapsedUSecs, METH_VARARGS, doc_QAudioOutput_elapsedUSecs},
    {sipName_error, meth_QAudioOutput_error, METH_VARARGS, doc_QAudioOutput_error},
    {sipName_format, meth_QAudioOutput_format, METH_VARARGS, doc_QAudioOutput_format},
    {sipName_notifyInterval, meth_QAudioOutput_notifyInterval, METH_VARARGS, doc_QAudioOutput_notifyInterval},
    {sipName_periodSize, meth_QAudioOutput_periodSize, METH_VARARGS, doc_QAudioOutput_periodSize},
    {sipName_processedUSecs, meth_QAudioOutput_processedUSecs, METH_VARARGS, doc_QAudioOutput_processedUSecs},
    {sipName_reset, meth_QAudioOutput_reset, METH_VARARGS, doc_QAudioOutput_reset},
    {sipName_resume, meth_QAudioOutput_resume, METH_VARARGS, doc_QAudioOutput_resume},
    {sipName_setBufferSize, meth_QAudioOutput_setBufferSize, METH_VARARGS, doc_QAudioOutput_setBufferSize},
    {sipName_setCategory, meth_QAudioOutput_setCategory, METH_VARARGS, doc_QAudioOutput_setCategory},
    {sipName_setNotifyInterval, meth_QAudioOutput_setNotifyInterval, METH_VARARGS, doc_QAudioOutput_setNotifyInterval},
    {sipName_setVolume, meth_QAudioOutput_setVolume, METH_VARARGS, doc_QAudioOutput_setVolume},
    {sipName_start, meth_QAudioOutput_start, METH_VARARGS, doc_QAudioOutput_start},
    {sipName_state, meth_QAudioOutput_state, METH_VARARGS, doc_QAudioOutput_state},
    {sipName_stop, meth_QAudioOutput_stop, METH_VARARGS, doc_QAudioOutput_stop},
    {sipName_suspend, meth_QAudioOutput_suspend, METH_VARARGS, doc_QAudioOutput_suspend},
    {sipName_volume, meth_QAudioOutput_volume, METH_VARARGS, doc_QAudioOutput_volume}
};

PyDoc_STRVAR(doc_QAudioOutput, "\1QAudioOutput(format: QAudioFormat = QAudioFormat(), parent: QObject = None)\n"
"QAudioOutput(QAudioDeviceInfo, format: QAudioFormat = QAudioFormat(), parent: QObject = None)");


/* Define this type's signals. */
static const pyqt5QtSignal signals_QAudioOutput[] = {
    {"notify()", "\1notify(self)", SIP_NULLPTR, SIP_NULLPTR},
    {"stateChanged(QAudio::State)", "\1stateChanged(self, QAudio.State)", SIP_NULLPTR, SIP_NULLPTR},
    {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR}
};


static pyqt5ClassPluginDef plugin_QAudioOutput = {
    & ::QAudioOutput::staticMetaObject,
    0,
    signals_QAudioOutput,
    SIP_NULLPTR
};


sipClassTypeDef sipTypeDef_QtMultimedia_QAudioOutput = {
    {
        -1,
        SIP_NULLPTR,
        SIP_NULLPTR,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QAudioOutput,
        SIP_NULLPTR,
        &plugin_QAudioOutput
    },
    {
        sipNameNr_QAudioOutput,
        {0, 0, 1},
        20, methods_QAudioOutput,
        0, SIP_NULLPTR,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    doc_QAudioOutput,
    -1,
    -1,
    supers_QAudioOutput,
    SIP_NULLPTR,
    init_type_QAudioOutput,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QAudioOutput,
    SIP_NULLPTR,
    array_QAudioOutput,
    SIP_NULLPTR,
    release_QAudioOutput,
    cast_QAudioOutput,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    array_delete_QAudioOutput,
    sizeof ( ::QAudioOutput),
};
