28QQuick3DAmbientSound::QQuick3DAmbientSound()
30 m_sound =
new QAmbientSound(QQuick3DAudioEngine::getEngine());
32 connect(m_sound, &QAmbientSound::sourceChanged,
this, &QQuick3DAmbientSound::sourceChanged);
33 connect(m_sound, &QAmbientSound::volumeChanged,
this, &QQuick3DAmbientSound::volumeChanged);
34 connect(m_sound, &QAmbientSound::loopsChanged,
this, &QQuick3DAmbientSound::loopsChanged);
35 connect(m_sound, &QAmbientSound::autoPlayChanged,
this, &QQuick3DAmbientSound::autoPlayChanged);