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

#include <memory>
#include "../../../Modulator.hpp"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'Modulator.hpp' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.9. 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_Modulator_t {
    QByteArrayData data[20];
    char stringdata0[196];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Modulator_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Modulator_t qt_meta_stringdata_Modulator = {
    {
QT_MOC_LITERAL(0, 0, 9), // "Modulator"
QT_MOC_LITERAL(1, 10, 12), // "stateChanged"
QT_MOC_LITERAL(2, 23, 0), // ""
QT_MOC_LITERAL(3, 24, 14), // "ModulatorState"
QT_MOC_LITERAL(4, 39, 5), // "start"
QT_MOC_LITERAL(5, 45, 13), // "symbolsLength"
QT_MOC_LITERAL(6, 59, 15), // "framesPerSymbol"
QT_MOC_LITERAL(7, 75, 9), // "frequency"
QT_MOC_LITERAL(8, 85, 11), // "toneSpacing"
QT_MOC_LITERAL(9, 97, 12), // "SoundOutput*"
QT_MOC_LITERAL(10, 110, 7), // "Channel"
QT_MOC_LITERAL(11, 118, 11), // "synchronize"
QT_MOC_LITERAL(12, 130, 5), // "dBSNR"
QT_MOC_LITERAL(13, 136, 8), // "TRperiod"
QT_MOC_LITERAL(14, 145, 4), // "stop"
QT_MOC_LITERAL(15, 150, 5), // "quick"
QT_MOC_LITERAL(16, 156, 4), // "tune"
QT_MOC_LITERAL(17, 161, 8), // "newState"
QT_MOC_LITERAL(18, 170, 12), // "setFrequency"
QT_MOC_LITERAL(19, 183, 12) // "newFrequency"

    },
    "Modulator\0stateChanged\0\0ModulatorState\0"
    "start\0symbolsLength\0framesPerSymbol\0"
    "frequency\0toneSpacing\0SoundOutput*\0"
    "Channel\0synchronize\0dBSNR\0TRperiod\0"
    "stop\0quick\0tune\0newState\0setFrequency\0"
    "newFrequency"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Modulator[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    1,   69,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       4,    9,   72,    2, 0x0a /* Public */,
       4,    8,   91,    2, 0x2a /* Public | MethodCloned */,
       4,    7,  108,    2, 0x2a /* Public | MethodCloned */,
       4,    6,  123,    2, 0x2a /* Public | MethodCloned */,
       4,    5,  136,    2, 0x2a /* Public | MethodCloned */,
      14,    1,  147,    2, 0x0a /* Public */,
      14,    0,  150,    2, 0x2a /* Public | MethodCloned */,
      16,    1,  151,    2, 0x0a /* Public */,
      16,    0,  154,    2, 0x2a /* Public | MethodCloned */,
      18,    1,  155,    2, 0x0a /* Public */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3,    2,

 // slots: parameters
    QMetaType::Void, QMetaType::UInt, QMetaType::Double, QMetaType::Double, QMetaType::Double, 0x80000000 | 9, 0x80000000 | 10, QMetaType::Bool, QMetaType::Double, QMetaType::Double,    5,    6,    7,    8,    2,    2,   11,   12,   13,
    QMetaType::Void, QMetaType::UInt, QMetaType::Double, QMetaType::Double, QMetaType::Double, 0x80000000 | 9, 0x80000000 | 10, QMetaType::Bool, QMetaType::Double,    5,    6,    7,    8,    2,    2,   11,   12,
    QMetaType::Void, QMetaType::UInt, QMetaType::Double, QMetaType::Double, QMetaType::Double, 0x80000000 | 9, 0x80000000 | 10, QMetaType::Bool,    5,    6,    7,    8,    2,    2,   11,
    QMetaType::Void, QMetaType::UInt, QMetaType::Double, QMetaType::Double, QMetaType::Double, 0x80000000 | 9, 0x80000000 | 10,    5,    6,    7,    8,    2,    2,
    QMetaType::Void, QMetaType::UInt, QMetaType::Double, QMetaType::Double, QMetaType::Double, 0x80000000 | 9,    5,    6,    7,    8,    2,
    QMetaType::Void, QMetaType::Bool,   15,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Bool,   17,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Double,   19,

       0        // eod
};

void Modulator::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<Modulator *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->stateChanged((*reinterpret_cast< ModulatorState(*)>(_a[1]))); break;
        case 1: _t->start((*reinterpret_cast< uint(*)>(_a[1])),(*reinterpret_cast< double(*)>(_a[2])),(*reinterpret_cast< double(*)>(_a[3])),(*reinterpret_cast< double(*)>(_a[4])),(*reinterpret_cast< SoundOutput*(*)>(_a[5])),(*reinterpret_cast< Channel(*)>(_a[6])),(*reinterpret_cast< bool(*)>(_a[7])),(*reinterpret_cast< double(*)>(_a[8])),(*reinterpret_cast< double(*)>(_a[9]))); break;
        case 2: _t->start((*reinterpret_cast< uint(*)>(_a[1])),(*reinterpret_cast< double(*)>(_a[2])),(*reinterpret_cast< double(*)>(_a[3])),(*reinterpret_cast< double(*)>(_a[4])),(*reinterpret_cast< SoundOutput*(*)>(_a[5])),(*reinterpret_cast< Channel(*)>(_a[6])),(*reinterpret_cast< bool(*)>(_a[7])),(*reinterpret_cast< double(*)>(_a[8]))); break;
        case 3: _t->start((*reinterpret_cast< uint(*)>(_a[1])),(*reinterpret_cast< double(*)>(_a[2])),(*reinterpret_cast< double(*)>(_a[3])),(*reinterpret_cast< double(*)>(_a[4])),(*reinterpret_cast< SoundOutput*(*)>(_a[5])),(*reinterpret_cast< Channel(*)>(_a[6])),(*reinterpret_cast< bool(*)>(_a[7]))); break;
        case 4: _t->start((*reinterpret_cast< uint(*)>(_a[1])),(*reinterpret_cast< double(*)>(_a[2])),(*reinterpret_cast< double(*)>(_a[3])),(*reinterpret_cast< double(*)>(_a[4])),(*reinterpret_cast< SoundOutput*(*)>(_a[5])),(*reinterpret_cast< Channel(*)>(_a[6]))); break;
        case 5: _t->start((*reinterpret_cast< uint(*)>(_a[1])),(*reinterpret_cast< double(*)>(_a[2])),(*reinterpret_cast< double(*)>(_a[3])),(*reinterpret_cast< double(*)>(_a[4])),(*reinterpret_cast< SoundOutput*(*)>(_a[5]))); break;
        case 6: _t->stop((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 7: _t->stop(); break;
        case 8: _t->tune((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 9: _t->tune(); break;
        case 10: _t->setFrequency((*reinterpret_cast< double(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (Modulator::*)(ModulatorState ) const;
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Modulator::stateChanged)) {
                *result = 0;
                return;
            }
        }
    }
}

QT_INIT_METAOBJECT const QMetaObject Modulator::staticMetaObject = { {
    QMetaObject::SuperData::link<AudioDevice::staticMetaObject>(),
    qt_meta_stringdata_Modulator.data,
    qt_meta_data_Modulator,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

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

int Modulator::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = AudioDevice::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 11)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 11;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 11)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 11;
    }
    return _id;
}

// SIGNAL 0
void Modulator::stateChanged(ModulatorState _t1)const
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(const_cast< Modulator *>(this), &staticMetaObject, 0, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
