/****************************************************************************
** Meta object code from reading C++ file 'engine.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.2)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "../../../../../../src/qtmultimedia-opensource-src-5.9.2/examples/multimedia/spectrum/app/engine.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'engine.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.9.2. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_Engine_t {
    QByteArrayData data[42];
    char stringdata0[511];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Engine_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Engine_t qt_meta_stringdata_Engine = {
    {
QT_MOC_LITERAL(0, 0, 6), // "Engine"
QT_MOC_LITERAL(1, 7, 12), // "stateChanged"
QT_MOC_LITERAL(2, 20, 0), // ""
QT_MOC_LITERAL(3, 21, 12), // "QAudio::Mode"
QT_MOC_LITERAL(4, 34, 4), // "mode"
QT_MOC_LITERAL(5, 39, 13), // "QAudio::State"
QT_MOC_LITERAL(6, 53, 5), // "state"
QT_MOC_LITERAL(7, 59, 11), // "infoMessage"
QT_MOC_LITERAL(8, 71, 7), // "message"
QT_MOC_LITERAL(9, 79, 10), // "durationMs"
QT_MOC_LITERAL(10, 90, 12), // "errorMessage"
QT_MOC_LITERAL(11, 103, 7), // "heading"
QT_MOC_LITERAL(12, 111, 6), // "detail"
QT_MOC_LITERAL(13, 118, 13), // "formatChanged"
QT_MOC_LITERAL(14, 132, 12), // "QAudioFormat"
QT_MOC_LITERAL(15, 145, 6), // "format"
QT_MOC_LITERAL(16, 152, 19), // "bufferLengthChanged"
QT_MOC_LITERAL(17, 172, 8), // "duration"
QT_MOC_LITERAL(18, 181, 17), // "dataLengthChanged"
QT_MOC_LITERAL(19, 199, 21), // "recordPositionChanged"
QT_MOC_LITERAL(20, 221, 8), // "position"
QT_MOC_LITERAL(21, 230, 19), // "playPositionChanged"
QT_MOC_LITERAL(22, 250, 12), // "levelChanged"
QT_MOC_LITERAL(23, 263, 8), // "rmsLevel"
QT_MOC_LITERAL(24, 272, 9), // "peakLevel"
QT_MOC_LITERAL(25, 282, 10), // "numSamples"
QT_MOC_LITERAL(26, 293, 15), // "spectrumChanged"
QT_MOC_LITERAL(27, 309, 6), // "length"
QT_MOC_LITERAL(28, 316, 17), // "FrequencySpectrum"
QT_MOC_LITERAL(29, 334, 8), // "spectrum"
QT_MOC_LITERAL(30, 343, 13), // "bufferChanged"
QT_MOC_LITERAL(31, 357, 6), // "buffer"
QT_MOC_LITERAL(32, 364, 14), // "startRecording"
QT_MOC_LITERAL(33, 379, 13), // "startPlayback"
QT_MOC_LITERAL(34, 393, 7), // "suspend"
QT_MOC_LITERAL(35, 401, 19), // "setAudioInputDevice"
QT_MOC_LITERAL(36, 421, 16), // "QAudioDeviceInfo"
QT_MOC_LITERAL(37, 438, 6), // "device"
QT_MOC_LITERAL(38, 445, 20), // "setAudioOutputDevice"
QT_MOC_LITERAL(39, 466, 11), // "audioNotify"
QT_MOC_LITERAL(40, 478, 17), // "audioStateChanged"
QT_MOC_LITERAL(41, 496, 14) // "audioDataReady"

    },
    "Engine\0stateChanged\0\0QAudio::Mode\0"
    "mode\0QAudio::State\0state\0infoMessage\0"
    "message\0durationMs\0errorMessage\0heading\0"
    "detail\0formatChanged\0QAudioFormat\0"
    "format\0bufferLengthChanged\0duration\0"
    "dataLengthChanged\0recordPositionChanged\0"
    "position\0playPositionChanged\0levelChanged\0"
    "rmsLevel\0peakLevel\0numSamples\0"
    "spectrumChanged\0length\0FrequencySpectrum\0"
    "spectrum\0bufferChanged\0buffer\0"
    "startRecording\0startPlayback\0suspend\0"
    "setAudioInputDevice\0QAudioDeviceInfo\0"
    "device\0setAudioOutputDevice\0audioNotify\0"
    "audioStateChanged\0audioDataReady"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Engine[] = {

 // content:
       7,       // revision
       0,       // classname
       0,    0, // classinfo
      20,   14, // methods
       0,    0, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
      11,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    2,  114,    2, 0x06 /* Public */,
       7,    2,  119,    2, 0x06 /* Public */,
      10,    2,  124,    2, 0x06 /* Public */,
      13,    1,  129,    2, 0x06 /* Public */,
      16,    1,  132,    2, 0x06 /* Public */,
      18,    1,  135,    2, 0x06 /* Public */,
      19,    1,  138,    2, 0x06 /* Public */,
      21,    1,  141,    2, 0x06 /* Public */,
      22,    3,  144,    2, 0x06 /* Public */,
      26,    3,  151,    2, 0x06 /* Public */,
      30,    3,  158,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      32,    0,  165,    2, 0x0a /* Public */,
      33,    0,  166,    2, 0x0a /* Public */,
      34,    0,  167,    2, 0x0a /* Public */,
      35,    1,  168,    2, 0x0a /* Public */,
      38,    1,  171,    2, 0x0a /* Public */,
      39,    0,  174,    2, 0x08 /* Private */,
      40,    1,  175,    2, 0x08 /* Private */,
      41,    0,  178,    2, 0x08 /* Private */,
      26,    1,  179,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3, 0x80000000 | 5,    4,    6,
    QMetaType::Void, QMetaType::QString, QMetaType::Int,    8,    9,
    QMetaType::Void, QMetaType::QString, QMetaType::QString,   11,   12,
    QMetaType::Void, 0x80000000 | 14,   15,
    QMetaType::Void, QMetaType::LongLong,   17,
    QMetaType::Void, QMetaType::LongLong,   17,
    QMetaType::Void, QMetaType::LongLong,   20,
    QMetaType::Void, QMetaType::LongLong,   20,
    QMetaType::Void, QMetaType::QReal, QMetaType::QReal, QMetaType::Int,   23,   24,   25,
    QMetaType::Void, QMetaType::LongLong, QMetaType::LongLong, 0x80000000 | 28,   20,   27,   29,
    QMetaType::Void, QMetaType::LongLong, QMetaType::LongLong, QMetaType::QByteArray,   20,   27,   31,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 36,   37,
    QMetaType::Void, 0x80000000 | 36,   37,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 5,    6,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 28,   29,

       0        // eod
};

void Engine::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        Engine *_t = static_cast<Engine *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->stateChanged((*reinterpret_cast< QAudio::Mode(*)>(_a[1])),(*reinterpret_cast< QAudio::State(*)>(_a[2]))); break;
        case 1: _t->infoMessage((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 2: _t->errorMessage((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break;
        case 3: _t->formatChanged((*reinterpret_cast< const QAudioFormat(*)>(_a[1]))); break;
        case 4: _t->bufferLengthChanged((*reinterpret_cast< qint64(*)>(_a[1]))); break;
        case 5: _t->dataLengthChanged((*reinterpret_cast< qint64(*)>(_a[1]))); break;
        case 6: _t->recordPositionChanged((*reinterpret_cast< qint64(*)>(_a[1]))); break;
        case 7: _t->playPositionChanged((*reinterpret_cast< qint64(*)>(_a[1]))); break;
        case 8: _t->levelChanged((*reinterpret_cast< qreal(*)>(_a[1])),(*reinterpret_cast< qreal(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
        case 9: _t->spectrumChanged((*reinterpret_cast< qint64(*)>(_a[1])),(*reinterpret_cast< qint64(*)>(_a[2])),(*reinterpret_cast< const FrequencySpectrum(*)>(_a[3]))); break;
        case 10: _t->bufferChanged((*reinterpret_cast< qint64(*)>(_a[1])),(*reinterpret_cast< qint64(*)>(_a[2])),(*reinterpret_cast< const QByteArray(*)>(_a[3]))); break;
        case 11: _t->startRecording(); break;
        case 12: _t->startPlayback(); break;
        case 13: _t->suspend(); break;
        case 14: _t->setAudioInputDevice((*reinterpret_cast< const QAudioDeviceInfo(*)>(_a[1]))); break;
        case 15: _t->setAudioOutputDevice((*reinterpret_cast< const QAudioDeviceInfo(*)>(_a[1]))); break;
        case 16: _t->audioNotify(); break;
        case 17: _t->audioStateChanged((*reinterpret_cast< QAudio::State(*)>(_a[1]))); break;
        case 18: _t->audioDataReady(); break;
        case 19: _t->spectrumChanged((*reinterpret_cast< const FrequencySpectrum(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 0:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QAudio::Mode >(); break;
            case 1:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QAudio::State >(); break;
            }
            break;
        case 3:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QAudioFormat >(); break;
            }
            break;
        case 14:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QAudioDeviceInfo >(); break;
            }
            break;
        case 15:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QAudioDeviceInfo >(); break;
            }
            break;
        case 17:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QAudio::State >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (Engine::*_t)(QAudio::Mode , QAudio::State );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Engine::stateChanged)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (Engine::*_t)(const QString & , int );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Engine::infoMessage)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (Engine::*_t)(const QString & , const QString & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Engine::errorMessage)) {
                *result = 2;
                return;
            }
        }
        {
            typedef void (Engine::*_t)(const QAudioFormat & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Engine::formatChanged)) {
                *result = 3;
                return;
            }
        }
        {
            typedef void (Engine::*_t)(qint64 );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Engine::bufferLengthChanged)) {
                *result = 4;
                return;
            }
        }
        {
            typedef void (Engine::*_t)(qint64 );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Engine::dataLengthChanged)) {
                *result = 5;
                return;
            }
        }
        {
            typedef void (Engine::*_t)(qint64 );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Engine::recordPositionChanged)) {
                *result = 6;
                return;
            }
        }
        {
            typedef void (Engine::*_t)(qint64 );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Engine::playPositionChanged)) {
                *result = 7;
                return;
            }
        }
        {
            typedef void (Engine::*_t)(qreal , qreal , int );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Engine::levelChanged)) {
                *result = 8;
                return;
            }
        }
        {
            typedef void (Engine::*_t)(qint64 , qint64 , const FrequencySpectrum & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Engine::spectrumChanged)) {
                *result = 9;
                return;
            }
        }
        {
            typedef void (Engine::*_t)(qint64 , qint64 , const QByteArray & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Engine::bufferChanged)) {
                *result = 10;
                return;
            }
        }
    }
}

const QMetaObject Engine::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_Engine.data,
      qt_meta_data_Engine,  qt_static_metacall, nullptr, nullptr}
};


const QMetaObject *Engine::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}

void *Engine::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_Engine.stringdata0))
        return static_cast<void*>(this);
    return QObject::qt_metacast(_clname);
}

int Engine::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 20)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 20;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 20)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 20;
    }
    return _id;
}

// SIGNAL 0
void Engine::stateChanged(QAudio::Mode _t1, QAudio::State _t2)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void Engine::infoMessage(const QString & _t1, int _t2)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

// SIGNAL 2
void Engine::errorMessage(const QString & _t1, const QString & _t2)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}

// SIGNAL 3
void Engine::formatChanged(const QAudioFormat & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 3, _a);
}

// SIGNAL 4
void Engine::bufferLengthChanged(qint64 _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 4, _a);
}

// SIGNAL 5
void Engine::dataLengthChanged(qint64 _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 5, _a);
}

// SIGNAL 6
void Engine::recordPositionChanged(qint64 _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 6, _a);
}

// SIGNAL 7
void Engine::playPositionChanged(qint64 _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 7, _a);
}

// SIGNAL 8
void Engine::levelChanged(qreal _t1, qreal _t2, int _t3)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)), const_cast<void*>(reinterpret_cast<const void*>(&_t3)) };
    QMetaObject::activate(this, &staticMetaObject, 8, _a);
}

// SIGNAL 9
void Engine::spectrumChanged(qint64 _t1, qint64 _t2, const FrequencySpectrum & _t3)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)), const_cast<void*>(reinterpret_cast<const void*>(&_t3)) };
    QMetaObject::activate(this, &staticMetaObject, 9, _a);
}

// SIGNAL 10
void Engine::bufferChanged(qint64 _t1, qint64 _t2, const QByteArray & _t3)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)), const_cast<void*>(reinterpret_cast<const void*>(&_t3)) };
    QMetaObject::activate(this, &staticMetaObject, 10, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
