/*
 * Interface wrapper code.
 *
 * Generated by SIP 6.6.2
 *
 * Copyright (c) 2022 Riverbank Computing Limited <info@riverbankcomputing.com>
 * 
 * This file is part of PyQt6.
 * 
 * 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 28 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtMultimedia/qaudio.sip"
#include <qaudio.h>
#line 29 "/build/pyqt6/src/PyQt6-6.3.1/build/QtMultimedia/sipQtMultimediaQAudio.cpp"



PyDoc_STRVAR(doc_QAudio_convertVolume, "convertVolume(float, QAudio.VolumeScale, QAudio.VolumeScale) -> float");

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

    {
        float a0;
         ::QAudio::VolumeScale a1;
         ::QAudio::VolumeScale a2;

        if (sipParseArgs(&sipParseErr, sipArgs, "fEE", &a0, sipType_QAudio_VolumeScale, &a1, sipType_QAudio_VolumeScale, &a2))
        {
            float sipRes;

            sipRes =  ::QAudio::convertVolume(a0,a1,a2);

            return PyFloat_FromDouble((double)sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_convertVolume, doc_QAudio_convertVolume);

    return SIP_NULLPTR;
}


static PyMethodDef methods_QAudio[] = {
    {sipName_convertVolume, meth_QAudio_convertVolume, METH_VARARGS, doc_QAudio_convertVolume}
};


/* Define the enum members and ints to be added to this type. */
static sipIntInstanceDef intInstances_QAudio[] = {
    {sipName_NoError, static_cast<int>( ::QAudio::NoError)},
    {sipName_OpenError, static_cast<int>( ::QAudio::OpenError)},
    {sipName_IOError, static_cast<int>( ::QAudio::IOError)},
    {sipName_UnderrunError, static_cast<int>( ::QAudio::UnderrunError)},
    {sipName_FatalError, static_cast<int>( ::QAudio::FatalError)},
    {sipName_ActiveState, static_cast<int>( ::QAudio::ActiveState)},
    {sipName_SuspendedState, static_cast<int>( ::QAudio::SuspendedState)},
    {sipName_StoppedState, static_cast<int>( ::QAudio::StoppedState)},
    {sipName_IdleState, static_cast<int>( ::QAudio::IdleState)},
    {sipName_LinearVolumeScale, static_cast<int>( ::QAudio::LinearVolumeScale)},
    {sipName_CubicVolumeScale, static_cast<int>( ::QAudio::CubicVolumeScale)},
    {sipName_LogarithmicVolumeScale, static_cast<int>( ::QAudio::LogarithmicVolumeScale)},
    {sipName_DecibelVolumeScale, static_cast<int>( ::QAudio::DecibelVolumeScale)},
    {0, 0}
};


sipClassTypeDef sipTypeDef_QtMultimedia_QAudio = {
    {
        SIP_NULLPTR,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_NAMESPACE,
        sipNameNr_QAudio,
        SIP_NULLPTR,
        SIP_NULLPTR
    },
    {
        sipNameNr_QAudio,
        {0, 0, 1},
        1, methods_QAudio,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, intInstances_QAudio, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    SIP_NULLPTR,
    -1,
    -1,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    0,
};
